2017-10-28 169 views
0

我試圖在正在運行raspberrian-noobs的Raspberry Pi上安裝"flask-ask" module。 我使用PIP命令"pip3 install flask-ask" 然後它會通過下載過程,當它試圖安裝模塊我得到的在Raspberry Pi上安裝Flask-ask

Error: Exception information: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in >main status = self.run(options, args) File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 290, >in run requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, >bundle=self.bundle) File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1230, in >prepare_files req_to_install.run_egg_info() File "/usr/lib/python2.7/dist-packages/pip/req.py", line 326, in >run_egg_info command_desc='python setup.py egg_info') File "/usr/lib/python2.7/dist-packages/pip/util.py", line 716, in >call_subprocess % (command_desc, proc.returncode, cwd)) InstallationError: Command python setup.py egg_info failed with error code 1 >in /tmp/pip-build-IHwQ27/cryptography

我試圖運行PIP運行PIP安裝之前安裝加密燒瓶問 它讓我的錯誤:

Exception information: 
Traceback (most recent call last): 
    File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main 
    status = self.run(options, args) 
    File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 290, in run 
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle) 
    File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1230, in prepare_files 
    req_to_install.run_egg_info() 
    File "/usr/lib/python2.7/dist-packages/pip/req.py", line 326, in run_egg_info 
    command_desc='python setup.py egg_info') 
    File "/usr/lib/python2.7/dist-packages/pip/util.py", line 716, in call_subprocess 
    % (command_desc, proc.returncode, cwd)) 
InstallationError: Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-gOiMHb/cryptography 

我也試過手動下載tar.gz文件形成的PyPI的網站,但這種具有相同錯誤結束。

如果有人能告訴我一個解決方案,我會很高興嗎?

+0

你可以用'--verbose'運行你的'pip install'命令,這樣我們就可以看到輸出了嗎? – AK47

+0

更新您的問題並刪除所有評論 – AK47

+0

在運行'pip install flask-ask'之前嘗試運行'pip install cryptography', – AK47

回答

0

在Pi上,升級pip3後我的運氣好多了。嘗試

sudo -H pip3 install --upgrade pip 

然後再次嘗試安裝。