【发布时间】: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