【问题标题】:Not able to install quandl无法安装quandl
【发布时间】:2017-08-14 18:08:58
【问题描述】:

使用以下命令

pip install quandl

得到以下错误:

build/temp.linux-x86_64-2.7/_openssl.c:434:30: fatal error: openssl/opensslv.h: No such file or directory
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-i9EhxV/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-8wUBuY-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-i9EhxV/cryptography/

【问题讨论】:

  • 您缺少 oppenssl 开发标头。在 Debian/Ubuntu 上,该软件包可能称为 libssl-dev
  • 顺便说一句。如果您想在 python 中进行机器学习,anaconda python 可能是您避免此类系统依赖问题的不错选择。
  • @languitar .. 很多 .. 它已安装 :-)
  • @languitar 你能告诉我如何安装 anaconda python。

标签: python python-2.7 python-3.x machine-learning


【解决方案1】:

您缺少 oppenssl 开发标头。在 Debian/Ubuntu 上,该软件包可能称为 libssl-dev

【讨论】:

  • 它已安装.. 但是当我运行仅包含“import Quandl”的 python 脚本时,它显示错误“找不到模块”
  • 只看另一个答案...无论如何,既然原始问题已得到解答,如果您能接受其中一个答案,那就太好了。
【解决方案2】:

如上所述,您必须安装 ---libssl-dev--- 并且必须将 quandl 全部写成小写(而不是像您所做的那样大写)...“import quandl”。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-07-26
    • 1970-01-01
    • 2020-10-12
    • 2023-01-30
    相关资源
    最近更新 更多