每当我尝试在Raspberry Pi上安装任何模块时,都会收到错误消息;为什么我不能在Raspbian上安装pip3?
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
我该如何解决这个问题?
我会花一点时间阅读如何正确格式化代码示例等内容。除其他外,这将解决你的“大胆的话只是'__' ..”的问题。 – larsks
无论如何,你似乎得到一个明确的错误信息(“权限被拒绝”)。您可能需要用'root'来写入该目录。 – larsks
你经历了超级用户(root)sudo用户吗? –