[英]install python and make in cygwin
I have installed Cygwin Terminal in OS Windows.我已经在 OS Windows 中安装了 Cygwin 终端。 But I need to install also python and make in cygwin.All of these programs are needed to run petsc library.
但是我还需要在 cygwin 中安装 python 和 make。运行 petsc 库需要所有这些程序。 Does Someone know how to install these components in cygwin?
有人知道如何在cygwin中安装这些组件吗?
Look into cygwin native package manager, devel
category.查看 cygwin 本机包管理器,
devel
类别。 You should find make
and python
there.你应该在那里找到
make
和python
。
After running into this problem myself, I was overlooking all of the relevant answers saying to check the setup.exe
again.在自己遇到这个问题之后,我忽略了所有相关的答案,说要再次检查
setup.exe
。 This was the solution to me, there are a few specific things to check.这是我的解决方案,有一些具体的事情需要检查。
setup.exe
.setup.exe
。 Don't be afraid, as new package installs append to your installation and do not over writesetup.exe
, make sure you run the install from the Internet and NOT your local folder.setup.exe
,确保您从Internet而不是本地文件夹运行安装。 This was where I was running into problems.To install Python 2: run https://cygwin.com/setup-x86.exe or https://cygwin.com/setup-x86_64.exe and select:要安装 Python 2:运行https://cygwin.com/setup-x86.exe或https://cygwin.com/setup-x86_64.exe并选择:
@spacediver is right on. @spacediver 是正确的。 Run cygwin's
setup.exe
again and when you get to the packages screen make sure you select make
and python
(and any other libs/apps you may need - perhaps gcc or g++).再次运行 cygwin 的
setup.exe
,当您进入包屏幕时,请确保选择make
和python
(以及您可能需要的任何其他库/应用程序 - 可能是 gcc 或 g++)。
Here is a command line version to install python in cygwin这是在cygwin中安装python的命令行版本
wget rawgit.com/transcode-open/apt-cyg/master/apt-cyg wget rawgit.com/transcode-open/apt-cyg/master/apt-cyg
install apt-cyg /bin安装 apt-cyg /bin
apt-cyg install python apt-cyg 安装 python
In my case, it was happened due to python is not well installed.就我而言,这是由于 python 没有安装好而发生的。 So python.exe is referenced in the shell so it can't find the file because the system is different.
所以shell中引用了python.exe,所以找不到文件,因为系统不同。 Please check cygwin python is well installed.
请检查 cygwin python 是否安装良好。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.