python - 无法安装 quandl

标签 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/

最佳答案

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

关于python - 无法安装 quandl,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42954849/

相关文章:

python - 如何通过传递 **args 来更新函数变量

python - 写入文件时出现 UnicodeEncodeError

python - Zeromq (pyzmq) ROUTER处理多个客户端的数据以及后续的超时处理

python - 如何执行操作系统命令并将结果保存到文件

javascript - beautifulsoup 删除所有内部 javascript

python - 在某些条件下组合列表元素

python - 如何用漂亮的汤跳过<span>

python - 从需要登录的社交媒体网站抓取最新帖子时,如何保持不被发现?

python - 如何每天早上 6 点和下午 6 点运行一次 Django celery 任务?

python - 操作系统错误 : [WinError 6] The handle is invalid when calling subprocess from Python 3. 6