【发布时间】:2014-06-30 14:29:57
【问题描述】:
我正在我的电脑上运行 ubuntu,我正在尝试下载 requests。
但是,当我执行pip install requests 时,它给了我一个错误:
writing manifest file 'requests.egg-info/SOURCES.txt'
running install_lib
creating /usr/local/lib/python2.7/dist-packages/requests
error: could not create '/usr/local/lib/python2.7/dist-packages/requests': Permission denied
----------------------------------------
Command /usr/bin/python -c "import setuptools;__file__='/home/alejandro/build/requests/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-tT3Boe-record/install-record.txt failed with error code 1
有没有人有关于如何克服或修复它的任何提示?
【问题讨论】:
标签: python python-2.7 terminal ubuntu-12.04 python-requests