I'm trying to create a python virtual env with the following command:
python -m venv myenv
The Scripts
directory of the newly created myenv
directory ends up containing the following activate scripts:
But it does not contain a bash activate
script as I expected it to. I'm unable to run the activate.bat
script in cygwin - batch syntax is not accepted:
line 1: @echo: command not found
line 3: rem: command not found
...
I suggest it might be linked to my python version which is 3.4 since the bash activate
script is created when I try to do the same thing with Python 3.7
Any tips for getting it to work with Python 3.4 ?
Python 3.4
actually does not support venv properly. I updated to Python 3.6.7
to get the bash activate
script.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.