无法在Cygwin中安装numpy,即使安装了python-devel。

huangapple go评论65阅读模式
英文:

Cannot install numpy in Cygwin even after installing python-devel

问题

我已经尝试多次删除我的 cygwin64 文件夹并重新安装 cygwin,其中包括 python37python37-devel,然后尝试运行

pip3 install numpy==1.21.6

但我一直收到以下消息

SystemError: 无法编译 'Python.h'。也许您需要安装 python-dev|python-devel。

可能的问题是什么?我已经安装了我所安装的 Python 版本的 Python 开发包,所以这非常令人沮丧。我还尝试了 python39python39-devel,但仍然遇到相同的问题。

英文:

I have tried multiple times deleting my cygwin64 folder and reinstalling cygwin with python37 and python37-devel and trying to run

pip3 install numpy==1.21.6

but I keep getting the message

SystemError: Cannot compile 'Python.h'. Perhaps you need to install python-dev|python-devel.

What could be the issue? I already have the python development package for the version of python I installed, so this is quite frustrating. I also tried with python39 and python39-devel, got the same thing.

答案1

得分: 0

不要紧,我刚刚切换到了Windows Subsystem for Linux,我的生活变得更加轻松。

英文:

Never mind, I just switched to Windows Subsystem for Linux and my life became a lot easier.

答案2

得分: 0

这也很容易检查可用的软件包

https://cygwin.com/packages/summary/python-numpy-src.html

Numpy 1.21.4-1 已经可用作

python39-numpy
python38-numpy

英文:

It was also easy to check available packages

https://cygwin.com/packages/summary/python-numpy-src.html

Numpy 1.21.4-1 was already available as

python39-numpy
python38-numpy
..

huangapple
  • 本文由 发表于 2023年6月1日 05:50:31
  • 转载请务必保留本文链接:https://go.coder-hub.com/76377522.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定