我已经把这个问题搞砸了几个小时了,而且还有一段时间.
第三个错误表示复制DLL,同时默认情况下它已存在.
C:\Windows\system32>virtualenv django-josh New python executable in django-josh\Scripts\python.exe ERROR: The executable django-josh\Scripts\python.exe is not functioning ERROR: It thinks sys.prefix is u'c:\\windows\\syswow64\\django-josh' (should be u'c:\\windows\\system32\\django-josh') ERROR: virtualenv is not compatible with this system or executable Note: some Windows users have reported this error when they installed Python for "Only this user" or have multiple versions of Python installed. Copying the appropriate PythonXX.dll to the virtualenv Scripts/ directory may fix this problem.
我一直在读这个并想要注意,我曾经安装了Python 3,但之后安装了Python 2.7并删除了Python 3.我想知道我的计算机上是否还有一些Python 3的痕迹,即使我找不到任何东西.
更新:我能够使用此命令(使用选项),但我不确定这是否正确.
C:\Windows\system32>virtualenv --distribute C:\Python27\envs\django New python executable in C:\Python27\envs\django\Scripts\python.exe Installing setuptools, pip...done.
非常感谢!