简体   繁体   English

在 Ubuntu 18.04 上安装 Pandas 时出错

[英]Error in installation of Pandas on Ubuntu 18.04

I am installing cdqa through the command "pip3 install cdqa", in pycharm virtual environment, but during installation I get this error:我在 pycharm 虚拟环境中通过命令“pip3 install cdqa”安装 cdqa,但在安装过程中出现此错误:

command x86_64-linux-gnu-gcc failed with exit status 1 ERROR: Failed building wheel for pandas命令 x86_64-linux-gnu-gcc 失败,退出状态为 1 错误:pandas 的构建轮失败

I tried installing pandas separately and it successfully installs Installing collected packages: pandas Successfully installed pandas-1.1.5我尝试单独安装 pandas 并成功安装安装收集的软件包: pandas 成功安装 pandas-1.1.5

When i again install cdqa, it stucks on "Building wheels for collected packages: pandas Building wheel for pandas (setup.py)"当我再次安装 cdqa 时,它卡在“为收集的包构建轮子:pandas 为 pandas (setup.py) 构建轮子”
and gives the same error.并给出同样的错误。

Tried on Jupiter Notebook and Pycharm both.在 Jupiter Notebook 和 Pycharm 上都试过了。

I am on Ubuntu 18.04 desktop version.我在 Ubuntu 18.04 桌面版。 Python 3.8.6 Python 3.8.6

Any suggestions?有什么建议么?

The cdqa repo says cdqa 回购

⛔ [NOT MAINTAINED] This repository is no longer maintained, but is being kept around for educational purposes. ⛔ [未维护] 此存储库不再维护,但出于教育目的而保留。 If you want a maintained alternative to cdQA check out: https://github.com/deepset-ai/haystack如果您想要 cdQA 的维护替代品,请查看: https://github.com/deepset-ai/haystack

so you should probably switch to that.所以你可能应该切换到那个。

As for why you're getting this issue, cdqa is locked to pandas==0.25.0 , which is positively ancient, and as such there is no Python 3.8 Linux binary wheel, which means Python is attempting to build it from source. As for why you're getting this issue, cdqa is locked to pandas==0.25.0 , which is positively ancient, and as such there is no Python 3.8 Linux binary wheel, which means Python is attempting to build it from source. That generally fails unless you've got all the development packages you need.除非您拥有所需的所有开发包,否则这通常会失败。 When you just pip install pandas , you're getting a newer version from a binary wheel you don't need to compile.当您只需pip install pandas时,您将从不需要编译的二进制轮中获得更新版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM