Installing wxpython 4.1.0 error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio"

Hi,

I have Windows 10 64 bit, python 3.9 64 bit.

I am trying to install wxpython with pip:

pip install wxpython

It gave:

"error: Microsoft Visual C++ 14.0 is required. Get it with “Build Tools for Visual Studio”

error.

Then I installed Visual Studio Build Tools, and I updated setuptools.

But I still get "error: Microsoft Visual C++ 14.0 is required. Get it with “Build Tools for Visual Studio” error.

Please help. And also please stop including numpy in wxpython. All errors are caused when installing numpy.

Thanks

try Python 3.8.6

I would like to use Python 3.9.

There isn’t a build on PyPI yet for Python 3.9, so pip is trying to build wxPython for you. If you get the source archive for the latest release and work through the build steps manually, without pip, then you might get more info about what is needed to make it work. OTOH, as far as I know there hasn’t been any testing of 4.1.0 with 3.9. I had to make some changes to get things working better in the current dev version.

On the gripping hand, you can get binary wheels for Python 3.9 from our snapshot builds here and save yourself a lot of work.

1 Like

AFAICS there isn’t any ‘jump’ except for the version cycle being definitely on the upbeat (3.10 is looking round the corner); is that a good sign :crossed_fingers: