changing virtualenv folder on windows

无人久伴 提交于 2019-12-05 08:08:39
Udi

Seems like your system and local environments create a mix of libraries and binaries from different versions of python.

Chances are you would need to delete Lib, Scripts and Include and start again with virtualenv .. You might be able to save the site-packages folder, but if you have requirements.txt files, you should probably reinstall packages instead (see also: How do I install from a local cache with pip? ).

Anyway, I believe you can create a script that does all this in one step.

Correcting python directory path in ENV_FOLDER\Lib\orig-prefix.txt helped me

I installed both py2 and py3 on my windows 10. And got this error by create virtualenv by using virtualenv xxx directly. After purging folder xxx and reinstalling with virtualenv -p TARGET_PY_EXE xxx everything works smoothly. Hope this will help multiple python windows users. By the way, I simply create env variables as PY2 and PY3 instead of adding absolute paths into PATH.

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