我正在我的电脑上运行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
有人对如何克服或解决这个问题有什么建议吗?你知道吗
你的错误
建议您尝试以普通用户的身份在系统范围内安装包—您没有权限这样做。你知道吗
您可以使用
user
选项为自己安装软件包:。。。或者使用
sudo
在系统范围内以root用户身份安装:或者,您可以考虑使用virtual environment。你知道吗
相关问题 更多 >
编程相关推荐