每当我尝试在Raspberry Pi上安装任何模块时,都会收到错误消息;
error: could not create '/usr/local/lib/python3.4/dist-packages/pyowm': Permission denied
其次是;
Cleaning up...
Command /usr/bin/python3 -c "import setuptools, tokenize;__file__='/tmp/pip-build-wb0cfq08/pyowm/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-qbxp58pn-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip-build-wb0cfq08/pyowm
Storing debug log for failure in /home/pi/.pip/pip.log
我该如何解决这个问题?
答案 0 :(得分:0)
使用root权限运行命令