2017-01-22 91 views
-3

每當我嘗試在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 

我該如何解決這個問題?

+0

我會花一點時間閱讀如何正確格式化代碼示例等內容。除其他外,這將解決你的「大膽的話只是'__' ..」的問題。 – larsks

+0

無論如何,你似乎得到一個明確的錯誤信息(「權限被拒絕」)。您可能需要用'root'來寫入該目錄。 – larsks

+0

你經歷了超級用戶(root)sudo用戶嗎? –

回答

0

帶有根權限的運行命令

+0

當我執行cd/root/ –

+0

時,權限被拒絕運行'sudo -i'來獲得root權限 –

+1

與其添加評論中的代碼片斷,請編輯您的答案以提供所有必要的信息。 –

相關問題