我试图将我的virtualenv绑定到django项目。所以当我输入命令workon my_project
它应该cd到我的django项目。将virtualenv绑定到使用setvirtualenvproject命令的项目不起作用(windows)
(my_project) C:\User\User\Desktop\Project>
(my_project) C:\User\User\Desktop\Project>setvirtualenvproject
'setvirtualenvproject' is not recognized as an internal or external command, operable program or batch file.
为什么命令不起作用? 有没有另一种方法将virtualenv绑定到我的django项目中?
议决
我已经成功地我的virtualenv绑定到我的Django项目使用此命令
setprojectdir [path to the project folder]
我做我的virtualenv绑定到我的Django项目。我使用mkvirtualenv命令创建了我的virtualenv,这是一个virtualenvwrapper命令。环境存储在我的User \ Envs \ my_project中。 – lukast94