2013-09-24 93 views
0

這裏有什麼問題?virtualenv:無法創建'/lib/python2.7':權限被拒絕

[email protected]> virtualenv foobar 
.... 
error: could not create '/lib/python2.7': Permission denied 
---------------------------------------- 
...Installing Setuptools...done. 
Traceback (most recent call last): 
    File "/usr/bin/virtualenv", line 9, in <module> 
    load_entry_point('virtualenv==1.10.1', 'console_scripts', 'virtualenv')() 
    File "/usr/lib/python2.7/site-packages/virtualenv.py", line 821, in main 
    symlink=options.symlink) 
    File "/usr/lib/python2.7/site-packages/virtualenv.py", line 961, in create_environment 
    install_sdist('Setuptools', 'setuptools-*.tar.gz', py_executable, search_dirs) 
    File "/usr/lib/python2.7/site-packages/virtualenv.py", line 932, in install_sdist 
    filter_stdout=filter_install_output) 
    File "/usr/lib/python2.7/site-packages/virtualenv.py", line 899, in call_subprocess 
    % (cmd_desc, proc.returncode)) 
OSError: Command /home/modwork_guf_dfj/foobar/bin/python setup.py install --single-version-externally-managed --record record failed with error code 1 

的virtualenv --version 1.10.1

回答

6

回答我的問題。在〜/ .pydistutils.cfg中設置了一個空的前綴 。評論這個前綴後,創建virtualenv工作。

#http://stackoverflow.com/questions/4495120/combine-user-with-prefix-error-with-setup-py-install 

#[install] 
#prefix= 
相關問題