简体   繁体   English

在 Pycharm 中导入 numpy 或 pandas 时,“进程以退出代码 132 完成(被信号 4 中断:SIGILL)”

[英]"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.

相关问题 尝试导入 pandas 时得到“进程完成,退出代码 132(被信号 4 中断:SIGILL)” - When trying to import pandas get 'Process finished with exit code 132 (interrupted by signal 4: SIGILL)' 进程以退出代码 132 结束(被信号 4:SIGILL 中断) - Tensorflow 认证考试 - Process finished with exit code 132 (interrupted by signal 4: SIGILL) - Tensorflow Certification Exam Pycharm - 进程已完成,退出代码为 134(被信号 6:SIGABRT 中断)错误 - Pycharm - Process finished with exit code 134 (interrupted by signal 6: SIGABRT) error Pycharm - 运行 Open CV 代码直接进入“进程完成,退出代码 139(被信号 11 中断:SIGSEGV)” - Pycharm - Running Open CV Code goes straight to “Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)” PyCharm 绘图问题“进程以退出代码 139 完成(被信号 11 中断:SIGSEGV)” - PyCharm Plotting Issue "Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)" pycharm 随机发生错误:进程以退出代码 134 结束(被信号 6 中断:SIGABRT) - pycharm error happening at random time: Process finished with exit code 134 (interrupted by signal 6: SIGABRT) 3D CNN 在 pycharm 上使用 keras-tensorflow(进程以退出代码 137 结束(被信号 9:SIGKILL 中断)) - 3D CNN using keras-tensorflow on pycharm ( Process finished with exit code 137 (interrupted by signal 9: SIGKILL) ) Python 服务在调试模式下在 PyCharm 中崩溃并出现错误:进程已完成,退出代码为 138(被信号 10 中断:SIGBUS) - The Python service is crashing in PyCharm in debug mode with an error : Process finished with exit code 138 (interrupted by signal 10: SIGBUS) 使用StringSubsequenceKernel的退出代码139(信号11:SIGSEGV中断)完成的过程 - Process finished with exit code 139 (interrupted by signal 11: SIGSEGV) with StringSubsequenceKernel 进程以 Python OpenCV 中的退出代码 134(被信号 6:SIGABRT 中断)结束 - Process finished with exit code 134 (interrupted by signal 6: SIGABRT) in python OpenCV
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM