1

I just installed Python 2.7.12 (32bit) on Windows 10 (64bit) workstation.

Now, I am trying to install pywin32-220.1-cp27-cp27m-win32.whl from this Python Library Website.

Attempted to install by

pip install pywin32-220.1-cp27-cp27m-win32.whl

And cmd is hanging for past 20 minutes. Please advise.

enter image description here

Update

Solution is install pywin32-217.win32-py2.7.exe from sourceforge.org

Community
  • 1
  • 1
Rhonda
  • 1,661
  • 5
  • 31
  • 65
  • It is installed however, judging from the output. Try CTRL+C, the library should be installed anyway. This could be a bug in pip, or the setup script in pywin. – CodenameLambda Jul 04 '16 at 16:16
  • @CodingLambdas CTRL+C and such didn't work. And I'm unable to find pywin32 installed on my system. – Rhonda Jul 04 '16 at 16:28

1 Answers1

0

pip likes to check for updates after doing what the command requires: if you are offline or behind a proxy it is going to take a very long time.

Add option --disable-pip-version-check to all pip command lines.

Lorenzo Gatti
  • 1,260
  • 1
  • 10
  • 15
  • @orenzo-gatti I'm on my home laptop, i.e. no proxy – Rhonda Jul 04 '16 at 16:23
  • To test what pip is really doing, I suggest hitting ctrl-c and looking at the traceback: a typical one I got stops at socket.getfqdn(), indirectly called from pip_version_check(). – Lorenzo Gatti Jul 04 '16 at 16:29
  • When I try `pip --disable-pip-version-check install pywin32-220.1-cp27-cp27m-win32.whl` I get `Requirement already satisfied (use --upgrade to upgrade): pywin32==220.1 from file:///C:/Python27/pywin32-220.1-cp27-cp27m-win32.whl in c:\python27\lib\site-packages` I'm puzzled. Is this normal? – Rhonda Jul 04 '16 at 16:33
  • @Rhonda In that case, your library is already installed. You ran `pip install ...` already, so... – CodenameLambda Jul 04 '16 at 16:36
  • What's important is the pause after installing or, in this case, skipping the installation. Is it gone? – Lorenzo Gatti Jul 04 '16 at 16:37
  • @LorenzoGatti I don't think it installed. When I try `import pywin32` I get `Traceback (most recent call last): File "", line 1, in import pywin32 ImportError: No module named pywin32` – Rhonda Jul 04 '16 at 16:50
  • @LorenzoGatti I just tried installing `pywin32-217.win32-py2.7.exe` from sourceforge. I restarted python and now can import pythoncom – Rhonda Jul 04 '16 at 16:58