Installing virtualenvwrapper on Windows

三世轮回 提交于 2019-12-03 02:37:02

问题


I've installed virtualenv and virtualenvwrapper on Windows using easy_install. But mkvirtualenv is missing. I tried to search on my machine but I couldn't find it. I don't know how to solve it. Do you have any idea?


回答1:


mkvirtualenv is a bash script so you need to run bash shell to make use of it.

mkvirtualenv is a bash function in the mkvirtualenv_bashrc script

You will need to run this from cygwin under Windows. (You can call a native python from this and not need a cygwin python)




回答2:


virtualenv helpers for Windows command shell:

  • virtualenvwrapper-win is a set of DOS-style batch files (doesn't work in PowerShell).

  • env.py is a single Python2 script (blog post).




回答3:


I've ported virtualenvwrapper to Powershell. Grab it from the BitBucket repo!




回答4:


virtualenvwrapper is for Linux/Unix, but this post gives some virtualenv support for Windows users (Bitbucket source is here).




回答5:


In windows we need to use virtualenv not mkvirtualenv while creating virtual environments



来源:https://stackoverflow.com/questions/2615968/installing-virtualenvwrapper-on-windows

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