Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy
 

How to install wxPython via python pip




wxPython - Cross platform GUI toolkit for Python, "Phoenix" version, it belongs to Classifiers:

- Development Status :: 6 - Mature
- Environment :: MacOS X
- Environment :: MacOS X :: Cocoa
- Environment :: Win32 (MS Windows)
- Environment :: X11 Applications
- Environment :: X11 Applications :: GTK
- Operating System :: MacOS
- Operating System :: MacOS :: MacOS X
- Operating System :: Microsoft
- Operating System :: Microsoft :: Windows
- Operating System :: Microsoft :: Windows :: Windows 7
- Operating System :: Microsoft :: Windows :: Windows 10
- Operating System :: POSIX
- Programming Language :: Python :: 3.1
- Programming Language :: Python :: 3.10
- Programming Language :: Python :: Implementation
- Programming Language :: Python :: Implementation :: CPython
- Topic :: Software Development :: User Interfaces

When you know about this project and you want to new install wxPython to support your project or you get trouble as ModuleNotFoundError: No module named "wxPython" or ImportError: cannot import name "wxPython" in your project, let follow this tutorial to install wxPython



Installation:

Step 1: First, ensure you installed pip in your os, to check pip has been installed on your computer

In Windows (CMD):

py -m pip --version

In Unix/macOS:

python3 -m pip --version

Ensure pip, setuptools, and wheel are up to date:

In Windows (CMD):

py -m pip install --upgrade pip setuptools wheel

In Unix/macOS:

python3 -m pip install --upgrade pip setuptools wheel


Optional - If you want to install in virtual environment:

In Windows (CMD):

- Install virtualenv - if you installed it, please ignore

py -m pip install --user virtualenv

- Create a virtual environment

py -m venv test_wxPython_env

- Active the virtual environment

test_wxPython_env\Scripts\active

In Unix/macOS:

- Install virtualenv - if you installed it, please ignore

pip3 install virtualenv

- Create a virtual environment

python3 -m venv test_wxPython_env

- Active the virtual environment

source test_wxPython_env/bin/active


Step 2: OK, now, let flow below content to start the installation wxPython

To install wxPython on Windows(CMD):

py -m pip install wxPython

To install wxPython on Unix/macOs:

pip install wxPython


Step 3: If you want to install a specific wxPython version, add ==<wxPython version> to the end command line

Example:

pip install wxPython==2.8.11.0


Please see the version list below table:

VersionReleased dateCommand
wxPython 4.2.02022-08-08T22:06:54Windows:

py -m pip install wxPython==4.2.0

Unix/macOs:

pip install wxPython==4.2.0

wxPython 4.1.12020-11-25T21:48:11Windows:

py -m pip install wxPython==4.1.1

Unix/macOs:

pip install wxPython==4.1.1

wxPython 4.1.02020-04-24T19:18:51Windows:

py -m pip install wxPython==4.1.0

Unix/macOs:

pip install wxPython==4.1.0

wxPython 4.0.7.post22019-11-13T18:02:06Windows:

py -m pip install wxPython==4.0.7.post2

Unix/macOs:

pip install wxPython==4.0.7.post2

wxPython 4.0.7.post12019-10-29T17:19:33Windows:

py -m pip install wxPython==4.0.7.post1

Unix/macOs:

pip install wxPython==4.0.7.post1

wxPython 4.0.72019-10-25T21:08:19Windows:

py -m pip install wxPython==4.0.7

Unix/macOs:

pip install wxPython==4.0.7

wxPython 4.0.62019-05-22T16:51:37Windows:

py -m pip install wxPython==4.0.6

Unix/macOs:

pip install wxPython==4.0.6

wxPython 4.0.52019-05-20T01:53:07Windows:

py -m pip install wxPython==4.0.5

Unix/macOs:

pip install wxPython==4.0.5

wxPython 4.0.42019-01-06T21:20:57Windows:

py -m pip install wxPython==4.0.4

Unix/macOs:

pip install wxPython==4.0.4

wxPython 4.0.32018-06-27T02:47:14Windows:

py -m pip install wxPython==4.0.3

Unix/macOs:

pip install wxPython==4.0.3

wxPython 4.0.22018-06-18T03:16:56Windows:

py -m pip install wxPython==4.0.2

Unix/macOs:

pip install wxPython==4.0.2

wxPython 4.0.12018-02-02T22:54:59Windows:

py -m pip install wxPython==4.0.1

Unix/macOs:

pip install wxPython==4.0.1

wxPython 4.0.02018-02-01T01:08:57Windows:

py -m pip install wxPython==4.0.0

Unix/macOs:

pip install wxPython==4.0.0

wxPython 2.9.1.12010-11-01T17:08:30Windows:

py -m pip install wxPython==2.9.1.1

Unix/macOs:

pip install wxPython==2.9.1.1

wxPython 2.8.11.02010-11-01T17:07:40Windows:

py -m pip install wxPython==2.8.11.0

Unix/macOs:

pip install wxPython==2.8.11.0


Step 4: Otherwise, you can install wxPython from local archives:

Download the distribution file from wxPython-4.2.0.tar.gz or the specific wxPython version in the below list of distribution

After that, install by command:

On Windows(CMD):

py -m pip install <path_to_wxPython_downloaded_file>

On Unix/macOs:

pip install <path_to_wxPython_downloaded_file>


List distribution:


Project link:

- Homepage
- Download
- Documentation
- Source