can't install: Need to update pywin32 dependencies
C:\Users\allen>pip list --outdated --format=columns | findstr docker
docker 2.6.1 3.3.0 wheel
produces the dependency chain:
Collecting pypiwin32==219; sys_platform == "win32" and python_version < "3.6" (from docker==3.3.0)
Using cached https://files.pythonhosted.org/packages/a5/8d/739f12d811d19cd6686f97bb96b65b0e4c8ca428fb02581d872b912b14cf/pypiwin32-219-cp27-none-win_amd64.whl
but I am running the latest pywin32:
C:\Users\allen>pip list --format=columns | findstr pywin32
pywin32 223
C:\Users\allen>pip show pywin32
Name: pywin32
Version: 223
Summary: Python for Window Extensions
Home-page: https://github.com/mhammond/pywin32
Author: Mark Hammond (et al)
Author-email: [email protected]
License: PSF
Location: c:\python27\lib\site-packages
Requires:
Required-by:
C:\Users\allen>python --version
Python 2.7.15
C:\Users\allen>ver
Microsoft Windows [Version 10.0.17134.48]
Not sure of why the version guards came (into requirements.txt/setup.py) in but pywin32 is supported on all Windows Python releases: https://github.com/mhammond/pywin32/releases
In my experience, pywin32==223 has been riddled with issues. I'll upgrade when I feel confident it doesn't break 50% of the windows userbase ; in the meantime, use a virtualenv.
@shin- It seems that pywin32==220 is not available with Python3.7. There is pypiwin32==219, pypiwin32==223, and pywin32==223. Is there a way to get around this without using a virtualenv?
PS ~\> python.exe --version
Python 3.7.0
PS ~\> python.exe -m pip install pypiwin32==220
Collecting pypiwin32==220
Could not find a version that satisfies the requirement pypiwin32==220 (from versions: 219, 223)
No matching distribution found for pypiwin32==220
PS ~\> python.exe -m pip install pywin32==220
Collecting pywin32==220
Could not find a version that satisfies the requirement pywin32==220 (from versions: 223)
No matching distribution found for pywin32==220
Looks like pywin32==224 is available for 3.7 as of a couple weeks ago. Is this version compatible with docker-py?
Any update regarding pywin32==224? Would it be possible to use that?
Also, quick note: I was attempting to use it on Python 3.8 a4.
Currently it's not possible to install on Windows with Python 3.10 due to this issue.
ERROR: Could not find a version that satisfies the requirement pywin32==227; sys_platform == "win32" (from docker) (from versions: 302, 303)
ERROR: No matching distribution found for pywin32==227; sys_platform == "win32"
If you look at pywin32 227 files: https://pypi.org/project/pywin32/227/#files
There is no Windows wheel for Python 3.10.
At least pywin32==302 or newer is required for Windows support with Python 3.10: https://pypi.org/project/pywin32/302/#files
I have the same problem. Windows + Python 3.10 builds are failing because the pinned version of pywin32 in docker-py is 227, which does not have a Python 3.10 wheel.