使用以下命令
pip install quandl
出现以下错误:
build/temp.linux-x86_64-2.7/_openssl.c:434:30: 致命错误:openssl/opensslv.h:无此文件或目录编译终止。错误:命令 'x86_64-linux-gnu-gcc' 以退出状态 1 失败----------------------------------------命令 "/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=" 在 /tmp/pip-build-i9EhxV/cryptography/ 中以错误代码 1 失败
回答:
如上所述,您需要安装 —libssl-dev—,并且必须将 quandl 全部使用小写字母(而不是您使用的大写字母)…”import quandl”。