【发布时间】:2019-04-19 00:18:33
【问题描述】:
我正在尝试在我的 python3 安装中安装 pandas。版本是 3.4.6,这似乎是该操作系统的最新版本。我安装了python:
python3 中的 zypper
我运行命令:
pip3 安装熊猫
它给了我一个日志,这里是错误被引用的部分:
gcc -pthread -Wno-unused-result -DNDEBUG -fmessage-length=0 -grecord-gcc-switches -fstack-protector -O2 -Wall -D_FORTIFY_SOURCE=2 -funwind-tables -fasynchronous-unwind-tables -fstack -clash-protection -g -fwrapv -DOPENSSL_LOAD_CONF -fPIC -Ipandas/_libs/src/klib -Ipandas/_libs/src -I/usr/lib64/python3.4/site-packages/numpy/core/include -I/usr /include/python3.4m -c pandas/_libs/tslib.c -o build/temp.linux-x86_64-3.4/pandas/_libs/tslib.o -Wno-unused-function gcc:错误:无法识别的命令行选项“-fstack-clash-protection” 错误:命令“gcc”失败,退出状态为 1
熊猫的造轮子失败 为熊猫运行 setup.py clean 未能构建熊猫 安装收集的包:pandas 为 pandas 运行 setup.py install ... 错误 命令的完整输出 /usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-install-xvndc9lz/pandas/setup.py';f=getattr( tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec( compile(code, file, 'exec'))" install --record /tmp/pip-record-nq8ffg3o/install-record.txt --single-version-externally-managed --compile:
现在,我已经用谷歌搜索了,pip 的 github 上有一个问题引用了这个问题,但没有一个解决方案有效。
https://github.com/pypa/pip/issues/5720
解决方案正在更新 gcc。我的最初是 4.8 版本,但我已经尝试过 4.9 和 5。不能比这更高,因为 YAST 在依赖项方面遇到问题,天知道还有什么。
有什么想法吗?我认为这一定与操作系统有关,因为我已经设法将 pandas 安装在另一台机器上,使用另一个 linux 发行版,相同的 python,相同的 gcc ..
【问题讨论】:
标签: python-3.x pandas pip suse sles