简体   繁体   English

在 cygwin 中安装 python 和 make

[英]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.你应该在那里找到makepython

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.这是我的解决方案,有一些具体的事情需要检查。

  1. Check /bin for "make.exe".检查 /bin 是否有“make.exe”。 If it's not there, you have not installed it correctly如果它不存在,则说明您没有正确安装它
  2. Run the setup.exe .运行setup.exe Don't be afraid, as new package installs append to your installation and do not over write不要害怕,因为新软件包安装会附加到您的安装中并且不要覆盖
  3. In the setup.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.这是我遇到问题的地方。 Search "make" and make sure you select to Install it, do not leave this as "Default".搜索“make”并确保选择“安装”,不要将其保留为“默认”。

@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 ,当您进入包屏幕时,请确保选择makepython (以及您可能需要的任何其他库/应用程序 - 可能是 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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM