我无法在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有谁能帮忙吗?
发布于 2016-04-13 01:17:48
试着这样做:
pip install --user imutils将你的本地站点包目录添加到PYTHONPATH --因为你说你在Ubuntu上,所以这很可能是在~/.local/lib/python2.7/site-packages上。其他读者应该检查python -m site的输出以查找用户站点目录,并查看它是否已启用。
发布于 2017-04-05 18:57:43
尝试这样做:sudo pip install imutils这可能是权限拒绝的问题。
https://stackoverflow.com/questions/36579781
复制相似问题