Use*_*ser 6 python django virtualenv windows-7-x64
我已经把这个问题搞砸了几个小时了,而且还有一段时间.
第三个错误表示复制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.
Run Code Online (Sandbox Code Playgroud)
我一直在读这个并想要注意,我曾经安装了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.
Run Code Online (Sandbox Code Playgroud)
非常感谢!
--distribute使用 Distribute,Setuptools 的一个分支,现已不再维护。它已被合并回Setuptools。一般来说,我建议不要使用此选项。您可以使用-p带有可执行文件路径的选项来指定要使用的 Python 解释器。这样,您可以确定您没有使用 Python 3。看起来您正在 C:\Python27 下创建环境,但我不相信您的 virtualenv 仅通过将其放在其中就知道使用 2.7地点。
| 归档时间: |
|
| 查看次数: |
1278 次 |
| 最近记录: |