trouble with creating a virtual environment in Windows 8, python 3.3

血红的双手。 提交于 2019-12-05 05:09:36

I've found a solution to this problem. Only the latest virtualenv (v1.11) which was released just a few days ago has this problem. Remove the egg from your site-packages folder and install the previous version via easy_install virtualenv==1.10.1, virtualenv will work fine.

Dunaevsky Maxim

I install virtulaenvwrapper-win and upgrade my virtualenv version to latest (1.11.5) with command:

pip install virtualenv --upgrade

If i write:

mkvirtualenv demo --system-site-packages --python=C:\Python34\python.exe

i see:

python.exe: can't open file 'C:\Python34\Scripts\virtualenv-script.py': [Errno 2] No such file or directory

Solution - using virtualenv, non virtualenvwrapper:

cd C:\www\virtualenvs
virtualenv demo --system-site-packages --python=C:\Python34\python.exe

Now i use workon only for activate/deactivate virtual environment. System: Windows 8.1 x64

With virtualenvwraper==4.7.1 (and probably above), one could just edit mkvirtualenv.bat like this:

uncomment line 48 (remove REM):

virtualenv.exe %*

comment line 49 (add REM)

REM python.exe "%PYHOME%\Scripts\virtualenv-script.py" %ARGS%
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!