在Raspberry Pi上安装Flask-ask

时间:2017-10-28 12:02:20

标签: python flask raspberry-pi pip

我正在尝试在运行"flask-ask" module的Raspberry Pi上安装raspberrian-noobs。 我正在使用pip命令"pip3 install flask-ask" 然后它将进行下载过程,当它尝试安装模块时,我得到了

  

错误:   例外信息:   Traceback(最近一次调用最后一次):    文件“/usr/lib/python2.7/dist-packages/pip/basecommand.py”,第122行,在> main      status = self.run(options,args)    文件“/usr/lib/python2.7/dist-packages/pip/commands/install.py”,第290行,>运行      requirement_set.prepare_files(finder,force_root_egg_info = self.bundle,> bundle = self.bundle)    在> prepare_files中输入文件“/usr/lib/python2.7/dist-packages/pip/req.py”,第1230行      req_to_install.run_egg_info()    在> run_egg_info中输入文件“/usr/lib/python2.7/dist-packages/pip/req.py”,第326行      command_desc ='python setup.py egg_info')    在> call_subprocess中输入文件“/usr/lib/python2.7/dist-packages/pip/util.py”,第716行      %(command_desc,proc.returncode,cwd))   InstallationError:命令python setup.py egg_info失败,错误代码1>在/ tmp / pip-build-IHwQ27 / cryptography

我在运行pip install flask-ask之前尝试运行pip install cryptography 它让我错误:

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

我还尝试从pypi网站手动下载tar.gz文件,但结尾的错误。

如果有人能告诉我解决方案,我会很高兴吗?

1 个答案:

答案 0 :(得分:0)

在Pi上,升级pip3后我的运气好转。尝试

find_library(MY_EXTERNAL_LIB name COOLSTUFF libCOOLSTUFF libCOOLSTUF.so hints /usr/local/lib) 

然后再次尝试安装。