英文:
Cannot install numpy in Cygwin even after installing python-devel
问题
我已经尝试多次删除我的 cygwin64
文件夹并重新安装 cygwin,其中包括 python37
和 python37-devel
,然后尝试运行
pip3 install numpy==1.21.6
但我一直收到以下消息
SystemError: 无法编译 'Python.h'。也许您需要安装 python-dev|python-devel。
可能的问题是什么?我已经安装了我所安装的 Python 版本的 Python 开发包,所以这非常令人沮丧。我还尝试了 python39
和 python39-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
..
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论