在Cygwin内部安装Python模块

发布于 2025-01-29 06:49:43 字数 323 浏览 3 评论 0原文

当我在Windows上使用Cygwin安装Python模块时,我有问题。首先,我安装了Anaconda。其次,我安装了Cygwin。如果我使用普通Windows命令促销安装任何模块,则将库安装在Anaconda目录中,并可以完美工作。我正在尝试在Cygwin本身内安装Pywin32。每次我遇到此错误时:

$ pip安装pywin32 错误:找不到满足需求pywin32的版本(来自版本:无) 错误:没有针对PYWIN32找到的匹配分布 我可以通过Anaconda轻松安装此库,但是当我尝试将其安装在Cygwin中时,我会出现上述错误。看来可以在Cygwin内部平稳安装一些Python模块,而另一些则没有。任何建议

I have problem when I install python modules using Cygwin on windows. First, I install anaconda. Secondly, I installed Cygwin. if I install any modules using normal windows command promote, the library is installed in the anaconda directory and works perfectly. I'm trying to install pywin32 inside the Cygwin itself. Every time I got this error:

$ pip install pywin32
ERROR: Could not find a version that satisfies the requirement pywin32 (from versions: none)
ERROR: No matching distribution found for pywin32
I can install this library easily via anaconda, but I got the above error when I tried to install it inside the Cygwin. It seems that there are some python modules can be installed smoothly inside the Cygwin while others are not. any suggestions

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

这就是我要做的:

  • 关闭所有Cygwin过程。
  • 执行Cygwin设置应用程序。
  • 保留所有选择的自动更新。
  • 在“完整”下搜索任何所需但卸载的软件包,然后选择它们。
  • 完成设置。
  • 打开一个Cygwin端子。
  • 执行Python -VPython2 -V确认版本。按照以下要求使用Python或Python2。
  • 执行python -m pip…其中是PIP命令。
  • 执行Python -M Pip List查看安装了哪些软件包。
  • 例如,执行python -m pip install -u pylint

有几个限制:

  • 如果可用的话,请始终从Cygwin设置中安装软件包,因为该软件包将具有特定的更改。
  • 请勿使用PIP安装或更新Cygwin设置可以安装的软件包,因为PYPI软件包可能不包含Cygwin的特定更改,并且不会为Cygwin提供正确的二进制内容。

This is what I do:

  • Close all Cygwin processes.
  • Execute the Cygwin setup app.
  • Leave all automatic updates selected.
  • Search for any desired but uninstalled packages under "Full", and select them.
  • Complete the setup.
  • Open a cygwin terminal.
  • Execute python -V or python2 -V to confirm the version. Use python or python2 as required below.
  • Execute python -m pip … where is a pip command.
  • Execute python -m pip list to see what packages are installed.
  • Execute python -m pip install -U pylint, for example.

There are a couple of restrictions:

  • Always install the package from Cygwin setup, if it is available, because that package will have Cygwin specific changes.
  • Do not install or update a package that can be installed by Cygwin setup using pip, as the PyPi package may not include Cygwin specific changes, and will not have the correct binary content for Cygwin.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文