2016-12-05 177 views
2

我已經安裝了python 3.5,並且需要安裝pywin(pywin32)Python PIP無法找到pywin32(在窗口)

但是,pip找不到它。請注意,我剛纔PIP install'ed send2trash併成功

Could not find a version that satisfies the requirement pywin32 (from versions:) 

gitpython一些可能相關的數據點:

  • 新安裝的Python 3.5
  • Windows 7的64位
  • 蟒蛇2.7成如前所述安裝在機器上
  • 如上所述,幾個其他包裝通過PIP精細安裝
  • r將這些命令從git-bash(來自git windows安裝程序)的這些命令統一起來,這些命令在一段時間之前安裝完成。 - 我有我的路GNU grep的,所以我相信我選擇的git的安裝選項,把整個MYSYS工具鏈在我的道路

全--verbose輸出:

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 

回答

1

pypi索引提到pywin32不支持python 3.5,直到python 3.3才支持。 https://pypi.python.org/pypi/pywin32。這就是你出錯的原因。

但是,您可以從這裏安裝它作爲二進制包。它應該工作。我已經用pyton 3.6.2使用xlwings,它需要pywin32。 Pywin32 build 220,對於我所需要的功能起到至少作用。

2

我想你可以用pip install pypiwin32代替。