2014-04-06 60 views
4

我需要virtualenv對於PyramidXP在Windows上創建Python 3.3.4和virtualenv:ImportError:沒有名爲'pip'的模塊

pip安裝罰款也是如此virtualenv

但是當我嘗試創建一個實例目錄,virtualenv炸彈。

我卸載並重新安裝virtualenv,但我一直得到同樣的問題。

任何想法?

C:\>pip --version 
pip 1.5.4 from C:\Python334\lib\site-packages (python 3.3) 

C:\>virtualenv --version 
1.11.4 

C:\>virtualenv venv 
Using base prefix 'C:\\Python334' 
New python executable in venv\Scripts\python.exe 
Installing setuptools, pip... 
    Complete output from command C:\venv\Scripts\python.exe -c "import sys, pip; s 
ys...d\"] + sys.argv[1:]))" setuptools pip: 
    Traceback (most recent call last): 
    File "<string>", line 1, in <module> 
ImportError: No module named 'pip' 
---------------------------------------- 
...Installing setuptools, pip...done. 
Traceback (most recent call last): 
    File "C:\Python334\lib\runpy.py", line 160, in _run_module_as_main 
    "__main__", fname, loader, pkg_name) 
    File "C:\Python334\lib\runpy.py", line 73, in _run_code 
    exec(code, run_globals) 
    File "C:\Python334\Scripts\virtualenv.exe\__main__.py", line 9, in <module> 
    File "C:\Python334\lib\site-packages\virtualenv.py", line 824, in main 
    symlink=options.symlink) 
    File "C:\Python334\lib\site-packages\virtualenv.py", line 992, in create_envir 
onment 
    install_wheel(to_install, py_executable, search_dirs) 
    File "C:\Python334\lib\site-packages\virtualenv.py", line 960, in install_wheel 
    'PIP_NO_INDEX': '1' 
    File "C:\Python334\lib\site-packages\virtualenv.py", line 902, in call_subproc 
ess 
    % (cmd_desc, proc.returncode)) 
OSError: Command C:\venv\Scripts\python.exe -c "import sys, pip; sys...d\"] + sy 
s.argv[1:]))" setuptools pip failed with error code 1 

C:\> 
+0

檢查64/32位安裝PIP/virtualenv中/ Python的,他們應該是完全相同,並同意您的操作系統需求。 – Yann

+0

嘗試在[這個答案](http://stackoverflow.com/a/21829823/754254]) – Felipe

+0

[設置virtualenv:沒有名爲'pip'的模塊]的可能的副本(http://stackoverflow.com/questions/21826859/setup-a-virtualenv-no-module-named-pip) – Felipe

回答

相關問題