Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python PIP cannot find pywin32 (on windows)

I have installed python 3.5, and need to install pywin (pywin32)

however, pip cannot find it. Note, i have just PIP install'ed send2trash and gitpython successfully

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

A few possibly relevant data points:

  • new install of python 3.5
  • windows 7 x64
  • python 2.7 was previously installed on the machine
  • as mentioned, several other packages were installed fine via PIP
  • running these commands from git-bash, which came from the git windows installer, installed some time ago. -- I have gnu grep in my path, so i believe i selected the git installer option to put the whole mysys toolchain in my path

full --verbose output:

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 
like image 375
some bits flipped Avatar asked Dec 05 '16 18:12

some bits flipped


3 Answers

I think you need to use pypiwin32 instead. See How do you install pywin32 from a binary file in tox on Windows?

like image 168
Irmen de Jong Avatar answered Nov 06 '22 10:11

Irmen de Jong


I think you could use pip install pypiwin32 instead.

like image 28
kyle Avatar answered Nov 06 '22 11:11

kyle


If you are using a Python 3.5+ then you could add pypiwin32==223 to your requirements.txt file instead of pywin32

like image 2
Himanshu Agarwal Avatar answered Nov 06 '22 11:11

Himanshu Agarwal