I might be missing something crucial, otherwise (almost) every statement / assumption in the question seems incorrect:
- It is possible to install / upgrade [GitHub]: mhammond/pywin32 - Python for Windows (pywin32) Extensions using pip
- GitHub is used to host the source code (mainly). The assets there are Mark Hammond's Win installers (since pywin32 was hosted on SourceForge - long before pip was born), I suppose they are only built for backward compatibility
- pip doesn't download the pywin32 binary, but wheel packages from [PyPI]: Links for pywin32
In order to demo all the above, I created a VirtualEnv, and based on that, a series of steps:
- python and pip executables locations / versions
- pip test (list pywin32 version using pip) - no output (no pywin32 installed)
- pywin32 download and URL display
- pywin32 install (an older version to test upgrade later)
- pip test
- pywin32 test (list pywin32 version using pywin32)
- pywin32 upgrade
- pip test
- pywin32 test
Output:
(py36x64_test) e:\Work\Dev\StackOverflow\q049398198>where python pip
c:\Work\Dev\VEnvs\py36x64_test\Scripts\python.exe
c:\Work\Dev\VEnvs\py36x64_test\Scripts\pip.exe
(py36x64_test) e:\Work\Dev\StackOverflow\q049398198>python -c "import sys;print(sys.version)"
3.6.3 (v3.6.3:2c5fed8, Oct 3 2017, 18:11:49) [MSC v.1900 64 bit (AMD64)]
(py36x64_test) e:\Work\Dev\StackOverflow\q049398198>pip -V
pip 9.0.3 from c:\work\dev\venvs\py36x64_test\lib\site-packages (python 3.6)
(py36x64_test) e:\Work\Dev\StackOverflow\q049398198>rem pip test
(py36x64_test) e:\Work\Dev\StackOverflow\q049398198>pip list 2>nul | findstr pywin32
(py36x64_test) e:\Work\Dev\StackOverflow\q049398198>pip download -vvv pywin32 2>nul | findstr /i download
Downloading pywin32-223-cp36-cp36m-win_amd64.whl (9.0MB)
Downloading from URL https://pypi.python.org/packages/9f/9d/f4b2170e8ff5d825cd4398856fee88f6c70c60bce0aa8411ed17c1e1b21f/pywin32-223-cp36-cp36m-win_amd64.whl#md5=2d211288ee000b6ec5d37436bcbe8a43 (from https://pypi.python.org/simple/pywin32/)
Successfully downloaded pywin32
(py36x64_test) e:\Work\Dev\StackOverflow\q049398198>pip install https://pypi.python.org/packages/be/25/0e0c568456b77ce144dd2b8799f915b046ffa1cd922771d214e4be05bca2/pywin32-222-cp36-cp36m-win_amd64.whl#md5=94a9a3782081e14973c5ae448957d530 2>nul
Collecting pywin32==222 from https://pypi.python.org/packages/be/25/0e0c568456b77ce144dd2b8799f915b046ffa1cd922771d214e4be05bca2/pywin32-222-cp36-cp36m-win_amd64.whl#md5=94a9a3782081e14973c5ae448957d530
Downloading pywin32-222-cp36-cp36m-win_amd64.whl (9.0MB)
100% |################################| 9.0MB 135kB/s
Installing collected packages: pywin32
Successfully installed pywin32-222
(py36x64_test) e:\Work\Dev\StackOverflow\q049398198>rem pip test
(py36x64_test) e:\Work\Dev\StackOverflow\q049398198>pip list 2>nul | findstr pywin32
pywin32 (222)
(py36x64_test) e:\Work\Dev\StackOverflow\q049398198>rem pywin32 test
(py36x64_test) e:\Work\Dev\StackOverflow\q049398198>python -c "import win32api as wapi;print(wapi.GetFileVersionInfo(wapi.__file__, \"\\\\\")[\"FileVersionLS\"] >> 16)"
222
(py36x64_test) e:\Work\Dev\StackOverflow\q049398198>pip install -U pywin32 2>nul
Collecting pywin32
Using cached pywin32-223-cp36-cp36m-win_amd64.whl
Installing collected packages: pywin32
Found existing installation: pywin32 222
Uninstalling pywin32-222:
Successfully uninstalled pywin32-222
(py36x64_test) e:\Work\Dev\StackOverflow\q049398198>rem pip test
(py36x64_test) e:\Work\Dev\StackOverflow\q049398198>pip list 2>nul | findstr pywin32
pywin32 (223)
(py36x64_test) e:\Work\Dev\StackOverflow\q049398198>rem pywin32 test
(py36x64_test) e:\Work\Dev\StackOverflow\q049398198>python -c "import win32api as wapi;print(wapi.GetFileVersionInfo(wapi.__file__, \"\\\\\")[\"FileVersionLS\"] >> 16)"
223