I'm trying to download python library from github, by using this comand in cmd: pip install --upgrade --force-reinstall https://github.com/BurnySc2/python-sc2/archive/develop.zip
But in the end, I catch an error:
ERROR: Package 'burnysc2' requires a different Python: 3.10.2 not in '<3.10,>=3.7'
I have the latest version of Python (3.10.2) Is there any ways to solve this problem?
CodePudding user response:
That library doesn't officially support Python 3.10, as the error message says.
I have the latest version of Python (3.10.2) Is there any ways to solve this problem?
I believe you can try adding --python-version 3.9 to your command. This should let you install with Python 3.10 even though it isn't officially supported:
The Python interpreter version to use for wheel and “Requires-Python” compatibility checks. Defaults to a version derived from the running interpreter.
If this works and all tests pass, consider changing the version constraint to include Python 3.10 and submitting a pull request.
Or you could downgrade to Python 3.9.

