[英]"Process finished with exit code 132 (interrupted by signal 4: SIGILL)" when importing numpy or pandas in Pycharm
I am having this issue when running my code in PyCharm.我在 PyCharm 中运行我的代码时遇到了这个问题。 other of my codes where I don't import pandas or NumPy work fine.
我不导入 pandas 或 NumPy 的其他代码工作正常。
I have tried the suggested solution in this previous question in my terminal:我已经在我的终端中尝试了上一个问题中建议的解决方案:
pip install --user --force-reinstall --ignore-installed --no-binary :all: pandas
But I get the following error:但我收到以下错误:
ERROR: Could not build wheels for numpy which use PEP 517 and cannot be installed directly
错误:无法为使用 PEP 517 且无法直接安装的 numpy 构建轮子
I am stock and don't know what to do from here.我是股票,不知道从这里做什么。
Thanks to some comments above, I managed to find the solution.感谢上面的一些评论,我设法找到了解决方案。
First thing, I opened other projects where I import pandas and numpy.首先,我打开了导入 pandas 和 numpy 的其他项目。 I ran one of the codes and all worked.
我运行了其中一个代码并且一切正常。
Then I compare the versions of the libraries (numpy and pandas) between environments.然后我比较环境之间的库版本(numpy 和 pandas)。 The versions of the environment I was having issues were not up to date.
我遇到问题的环境版本不是最新的。 So I went to the terminal, I activate the environment with the problem and I installed the same versions in other environments
所以我去了终端,我激活了有问题的环境,我在其他环境中安装了相同的版本
pip install numpy==1.19.5
pip install pandas==1.1.5
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.