无法安装quandl

时间:2017-03-22 14:40:45

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

使用以下命令

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/

2 个答案:

答案 0 :(得分:1)

您缺少oppenssl开发标题。在Debian / Ubuntu上,包可能被称为libssl-dev

答案 1 :(得分:1)

如上所述,你必须安装--- libssl-dev ---你必须写全部小写的quandl(不像你那样写大写)......“import quandl”。