无法在SLES 12 SP1上安装pandas

问题描述 投票:0回答:2

我正在尝试在我的 python3 安装上安装 pandas。版本是 3.4.6,这似乎是该操作系统的最新版本。我安装了 python:

python3 中的 zypper

我运行命令:

pip3 安装 pandas

它给了我一个日志,这是引用错误的部分:

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 -保护-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


熊猫造轮子失败 为 pandas 运行 setup.py clean 构建 pandas 失败 安装收集的包:pandas 运行 setup.py install for pandas ...错误 命令 /usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-install-xvndc9lz/pandas/setup.py';f=getattr(tokenize, 'open') 的完整输出, 打开)(file);code=f.read().replace(' ',' ');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-record-nq8ffg3o/install-record.txt --single-version-externally -托管--编译:

现在,我已经用谷歌搜索了一下,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
2个回答
0
投票

“工具链模块”中有一个gcc7。

SUSEconnect
和/或
YaST
将允许启用此额外的包存储库。


0
投票

对于 Sles OpenSuse 使用:

zypper in python3-pandas

© www.soinside.com 2019 - 2024. All rights reserved.