权限被拒绝,并且在安装python-docx软件包时存储调试日志失败

时间:2018-08-01 21:31:35

标签: permission-denied python-docx

pip install python-docx

在安装docx软件包时拒绝了权限

创建/usr/local/lib/python2.7/dist-packages/docx

error: could not create '/usr/local/lib/python2.7/dist-packages/docx':  
Permission denied

----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp
/pip_build_arvind/python-docx/setup.py';exec(compile(getattr(tokenize, 
'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" 
install --record /tmp/pip-fpXAC4-record/install-record.txt --single-
version-externally-managed --compile failed with error code 1 in 
/tmp/pip_build_arvind/python-docx
Storing debug log for failure in /home/arvind/.pip/pip.log

sudo也不起作用

sudo apt-get install python-docx

错误

E: Unable to locate package python-docx

0 个答案:

没有答案