gad*_*dss 51 python pip virtualenv ubuntu-12.04
我正在使用ubuntu 12.04而我正在尝试使用安装virtualenv,但突然间我遇到了这个错误.
samuel@sampc:~$ pip install virtualenv
Downloading/unpacking virtualenv
Running setup.py egg_info for package virtualenv
warning: no previously-included files matching '*' found under directory 'docs/_templates'
warning: no previously-included files matching '*' found under directory 'docs/_build'
Installing collected packages: virtualenv
Running setup.py install for virtualenv
error: could not create '/usr/local/lib/python2.7/dist-packages/virtualenv_support': Permission denied
Complete output from command /usr/bin/python -c "import setuptools;__file__='/home/samuel/build/virtualenv/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-Z2v_fR-record/install-record.txt:
running install
running build
running build_py
running install_lib
creating /usr/local/lib/python2.7/dist-packages/virtualenv_support
error: could not create '/usr/local/lib/python2.7/dist-packages/virtualenv_support': Permission denied
----------------------------------------
Command /usr/bin/python -c "import setuptools;__file__='/home/samuel/build/virtualenv/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-Z2v_fR-record/install-record.txt failed with error code 1
Storing complete log in /home/samuel/.pip/pip.log
Run Code Online (Sandbox Code Playgroud)
有没有人对我的案子有所了解?
fal*_*ets 98
我听说使用sudo
它pip
是不安全的.
尝试添加--user
到您的命令的最后,提到这里.
pip install packageName --user
Run Code Online (Sandbox Code Playgroud)
我怀疑使用此方法安装意味着其他用户无法使用这些包.
use*_*456 49
您没有Python文件夹的权限.
sudo chown -R $USER /usr/local/lib/python2.7
Run Code Online (Sandbox Code Playgroud)
小智 17
使用
sudo pip install virtualenv
Run Code Online (Sandbox Code Playgroud)
显然,在行之前添加"sudo"时,您将具有管理员权限...只是不要忘记您的密码.
归档时间: |
|
查看次数: |
97995 次 |
最近记录: |