how to download and install wxPython wheel from github for Python 3.10 to overcome disutils and setuptools problem

Question:

Python 3.10 has a problem with disutils and setuptools>=58 in that wxPython will not run in conjunction with packages Gooey/DEAP/NEMO. I have been told there is a wxPython wheel which gets round those problems

https://github.com/oleksis/youtube-dl-gui/releases/tag/v1.8.2
but i cannot get the command syntax to work for some relationship between:
"git+", #egg", "wxPython"

I tried
pip install -e git+https://github.com/oleksis/youtube-dl-gui/releases/tag/v1.8.2/wxPython-4.1.2a1-cp310-cp310-win_amd64.whl#egg=wxPython
and got

pip install -e git+https://github.com/oleksis/youtube-dl-gui/releases/tag/v1.8.2/wxPython-4.1.2a1-cp310-cp310-win_amd64.whl#egg=wxPython
Obtaining wxPython from git+https://github.com/oleksis/youtube-dl-gui/releases/tag/v1.8.2/wxPython-4.1.2a1-cp310-cp310-win_amd64.whl#egg=wxPython
Cloning https://github.com/oleksis/youtube-dl-gui/releases/tag/v1.8.2/wxPython-4.1.2a1-cp310-cp310-win_amd64.whl to c:usersgeraldsrcwxpython
Running command git clone –filter=blob:none –quiet https://github.com/oleksis/youtube-dl-gui/releases/tag/v1.8.2/wxPython-4.1.2a1-cp310-cp310-win_amd64.whl ‘C:UsersGeraldsrcwxpython’
fatal: https://github.com/oleksis/youtube-dl-gui/releases/tag/v1.8.2/wxPython-4.1.2a1-cp310-cp310-win_amd64.whl/info/refs not valid: is this a git repository?

What is the correct pip command for this case please.

Asked By: ocopa

||

Answers:

Syntax pip install git+https://URL is used to install from sources from a Git repository — clone, cd, build wheel, install. The link https://github.com/oleksis/youtube-dl-gui/releases/tag/v1.8.2/wxPython-4.1.2a1-cp310-cp310-win_amd64.whl is a direct link to a wheel, it’s not a Git repository (GitHub is bigger than just a hosting for reposotories, it has bug tracker, project management, hosting for release artifacts, etc.) so you shouldn’t use git+https:// syntax.

Try

pip install https://github.com/oleksis/youtube-dl-gui/releases/tag/v1.8.2/wxPython-4.1.2a1-cp310-cp310-win_amd64.whl

The wheel is valid for 64-bit Python version 3.10 on Windows. Check if your Python is the one.

Answered By: phd

A new release appeared: https://pypi.org/project/wxPython/4.2.0/ . Binary wheels for w64 available for Python 3.7-3.10.

Answered By: phd
Categories: questions Tags: , , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.