Skip to content

Bug located in create virtual env create_venv_windows  #350

@kmahajan-cadfem

Description

@kmahajan-cadfem

🔍 Before submitting the issue

  • I have searched among the existing issues
  • I am using a Python virtual environment

🐞 Description of the bug

create virtual environment does not work on machine where there is no global python is installed, and even if it is installed most probably it wont work with the Ansys Python which is in the installation directory.

I have dug little bit into the code and seems like following command does not work

start /w /min cmd /K "set PATH=C:\Program Files\ANSYS Inc\v242\commonfiles\CPython\3_10\winx64\Release\python && python -m venv C:\Users\mkanchan\.ansys_python_venvs\test_venv && exit

this command when run in the console (cmd.exe), does not work and shows that python is not a command or executable

PS : the successful creation should check if the venv is actually created by checking the executables and activate files

PS2: in this template remove the I am using a Python virtual environment, this is not a standard for this repo

📝 Steps to reproduce

  • make sure you do not have global python installed on your machine
  • fire up Ansys Python Manager
  • select one of the ansys installation python
  • create venv
  • it says it sucessfully created but in reality the folder is empty

💻 Which operating system are you using?

Windows

📀 Which ANSYS version are you using?

242

🐍 Which Python version are you using?

3.10

📦 Installed packages

-

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions