我无法在ubuntu中使用命令行安装imutils.我使用过"pip install imutils",但它显示错误:
error: could not create '/usr/local/lib/python2.7/dist-packages/imutils': Permission denied
----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_amorthyo/imutils/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-Beko63-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_amorthyo/imutils
Storing debug log for failure in /home/amorthyo/.pip/pip.log
Run Code Online (Sandbox Code Playgroud)
请任何人都可以帮忙????
您的用户无权写入该位置. 你不需要以root身份运行pip.
试试这个:
pip install --user imutils
Run Code Online (Sandbox Code Playgroud)
并将您的本地站点包目录添加到PYTHONPATH - 因为您说您在Ubuntu上,这可能是~/.local/lib/python2.7/site-packages.其他读者应检查输出python -m site以查找用户站点目录并查看是否已启用.
| 归档时间: |
|
| 查看次数: |
17029 次 |
| 最近记录: |