Python PIP找不到pywin32(在windows上)
我已经安装了python 3.5,需要安装pywin(pywin32) 然而,皮普找不到它。注意,我刚刚成功地PIP安装了send2trash和gitpythonPython PIP找不到pywin32(在windows上),python,python-3.x,pip,Python,Python 3.x,Pip,我已经安装了python 3.5,需要安装pywin(pywin32) 然而,皮普找不到它。注意,我刚刚成功地PIP安装了send2trash和gitpython Could not find a version that satisfies the requirement pywin32 (from versions: ) 一些可能相关的数据点: python 3.5的新安装 windows 7 x64 python 2.7以前安装在机器上 如前所述,其他几个软件包通过PIP安装得很好
Could not find a version that satisfies the requirement pywin32 (from versions: )
一些可能相关的数据点:
- python 3.5的新安装
- windows 7 x64
- python 2.7以前安装在机器上
- 如前所述,其他几个软件包通过PIP安装得很好
- 从git bash运行这些命令,git bash来自于git windows安装程序,该安装程序是不久前安装的。 --我有gnu grep在我的路径中,所以我相信我选择了git安装程序选项来将整个mysys工具链放在我的路径中
C:\Users\USER>pip install pywin32 --proxy http://proxy.COMPANY.com:8080
Collecting pywin32
Could not find a version that satisfies the requirement pywin32 (from versions: )
No matching distribution found for pywin32
C:\Users\USER>pip install pywin32 --proxy http://proxy.COMPANY.com:8080 --verbose
Config variable 'Py_DEBUG' is unset, Python ABI tag may be incorrect
Config variable 'WITH_PYMALLOC' is unset, Python ABI tag may be incorrect
Collecting pywin32
1 location(s) to search for versions of pywin32:
* https://pypi.python.org/simple/pywin32/
Getting page https://pypi.python.org/simple/pywin32/
Looking up "https://pypi.python.org/simple/pywin32/" in the cache
Current age based on date: 61
Freshness lifetime from max-age: 600
Freshness lifetime from request max-age: 600
The response is "fresh", returning cached response
600 > 61
Analyzing links from page https://pypi.python.org/simple/pywin32/
Could not find a version that satisfies the requirement pywin32 (from versions: )
Cleaning up...
No matching distribution found for pywin32
Exception information:
Traceback (most recent call last):
File "c:\users\USER\appdata\local\programs\python\python35\lib\site-packages\pip\basecommand.py", line 215, in main
status = self.run(options, args)
File "c:\users\USER\appdata\local\programs\python\python35\lib\site-packages\pip\commands\install.py", line 324, in run
requirement_set.prepare_files(finder)
File "c:\users\USER\appdata\local\programs\python\python35\lib\site-packages\pip\req\req_set.py", line 380, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File "c:\users\USER\appdata\local\programs\python\python35\lib\site-packages\pip\req\req_set.py", line 554, in _prepare_file
require_hashes
File "c:\users\USER\appdata\local\programs\python\python35\lib\site-packages\pip\req\req_install.py", line 278, in populate_link
self.link = finder.find_requirement(self, upgrade)
File "c:\users\USER\appdata\local\programs\python\python35\lib\site-packages\pip\index.py", line 514, in find_requirement
'No matching distribution found for %s' % req
pip.exceptions.DistributionNotFound: No matching distribution found for pywin32
我想你应该改用。请参见pypi索引提到pywin32在Python3.5中不受支持,直到Python3.3。这就是为什么会出现错误
但是,您可以从这里将其作为二进制软件包安装。它应该会起作用。我在pyton 3.6.2中使用了xlwings,它需要pywin32。Pywin32 build 220,至少对我所需的功能运行良好。我认为你可以使用
pip安装pypiwin32
。我的问题是pypiwin32仅在Python3.5+上受支持。如果有人仍在寻找Pywin32 for python34,这里是链接。
下载并安装。这就解决了问题
如果您使用的是Python 3.5+,那么您可以将pypiwin32==223添加到requirements.txt文件中,而不是pywin32我运行的是Python 2.7.10,当我尝试“pip安装pywin32”时仍然会遇到相同的错误,有人知道为什么吗?