python教程—错误:无法创建’ /usr/local/lib/python2.7/dist-packages/virtualenv_support ‘:权限被拒绝-Python实用宝典

python教程—错误:无法创建’ /usr/local/lib/python2.7/dist-packages/virtualenv_support ‘:权限被拒绝

我用的是ubuntu 12.04,我试着安装virtualenv,但是突然我得到了这个错误。有人知道我的情况吗?

我用的是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('rn', '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('rn', '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

有人知道我的情况吗?

回答

​Python实用宝典 (pythondict.com)
不只是一个宝典
欢迎关注公众号:Python实用宝典

本文由 Python实用宝典 作者:Python实用宝典 发表,其版权均为 Python实用宝典 所有,文章内容系作者个人观点,不代表 Python实用宝典 对观点赞同或支持。如需转载,请注明文章来源。
1

发表评论