Osx Pip Install



Current Release

Starting with wxPython 4.0 (the first Phoenix release) the wxPython sourcearchive and, for supported platforms, wxPython binary wheels are availablefrom the Python Package Index (PyPI). wxPython's project page at PyPI ishttps://pypi.org/project/wxPython.

The source or binary wheels can be downloaded directly from the projectpage, or you can use the wonderful piptool to do it for you.

Pip is a tool for easily installing and managing Python packages, that is recommended over easyinstall. It is superior to easyinstall in several ways, and is actively maintained. $ pip2 -V # pip pointing to the Homebrew installed Python 2 interpreter $ pip -V # pip pointing to the Homebrew installed Python 3 interpreter (if installed). How to install Mu with Python packaging on Windows, OSX and Linux. If you already have Python3 installed on your Windows, OSX or Linux machine then it is easy to install Mu with Python’s built-in package manager, pip. Please note: this method does not currently work on Raspberry Pi (use these instructions instead).

Windows and macOS

If you are on Windows or macOS with a compatible Python build, then thecommand shown above will download the appropriate wheel file from thelatest release, and install it in your active Python environment or virtualenvironment.

Osx Pip Install

If there is no binary wheel file available for your platform or for yourversion of Python, then pip will download the source archive and willattempt to build it for you. There is some information about that below.

  1. The easiest way to install Kivy is with pip, which installs Kivy using either a pre-compiled wheel, if available, otherwise from source (see below). Kivy provides pre-compiled wheels for the supported Python versions on Windows, OS X, Linux, and RPi.
  2. Doing it Right¶. Let’s install a real version of Python. Before installing Python, you’ll need to install GCC. GCC can be obtained by downloading Xcode, the smaller Command Line Tools (must have an Apple account) or the even smaller OSX-GCC-Installer package.
  3. Pip install will by default do the install in this order: (1) build a wheel for fbprophet, (2) install package dependencies, (3) install fbprophet from the wheel. If pystan is not already installed, this is a problem: Pystan is needed to build the wheel in (1), but is not installed until (2).

Yes, we have Linux Wheels. Sort of.

Because of the differences between Linux distributions (mainly differentversions of the core libraries installed by default, but also platformarchitecture and etc.) it is not possible to host binary wheel files forLinux on PyPI unless they can be made to work within the constraints ofPEP 513 Unfortunately,attempts to pound the wxPython peg into the manylinux1 hole have not beenvery successful. Maybe manylinux2 will be a better fit. In the meantime,if you have a Linux similar enough to those used to build the wheelslocated under the wxPython Extras linux folder, then you can use them and not need to build the wheels yourself.

Since there are various options for distro and wx port (GTK2 or GTK3) thenthe files can not all be located in the same folder for easy access by pip.This simply just means that you'll need to drill down a little further tofind the URL to give to pip. For example, to get the GTK3 wxPython buildsfor Ubuntu 16.04 (and 16.10, LinuxMint 18, and probably others) you can usea pip command like this:

Osx Pip Install Requests

NotOsx pip install pandas

Of course you can always download the wheel file yourself and then use pipto install your local copy of the file.

Building with Pip

If pip is not able to find a binary wheel file that matches your platformand your version of Python, then it will download the source archive andwill attempt to build it for you. If you have the required compiler anddependent libraries installed, then this will be a feasible approach foryou, although it can take some time to do the build. The end result will bethe same as if there was a binary wheel available for you. In fact, pip canalso be told to just build the wheel and not do the install. This way youcan reuse the wheel file for different Python environments or on othermachines, or whatever, without needing to rebuild for each one.

For instructions on how to build a wxPython wheel file specific to your Linuxmachine and Python installation, please refer to thispost in the blog.

Conda or Anaconda

If you are using a Python environment managed by Conda orAnaconda then you can install wxPython using theconda tool just like you would install any other package. Checkhere for details on what builds areavailable. The fine folks at Conda-forge have done agood job at keeping it up to date with new releases.

One small gotcha to be aware of with the conda builds of wxPython is that onOSX/macOS you will need to use pythonw to execute your wxPython applications,not the typical python command. To use pythonw you will need to install thepython.app pacakge from conda.

Linux Pip Install

Extra Files

In addition to the source and binaries available on PyPI, there are someextra files which are part of each release, which are hosted at https://extras.wxPython.org/wxPython4/extras/. The things you will find there are:

  • A tarball containing the wxPython API documentation, which is thesame content available at https://docs.wxpython.org. You can use thiscopy of the reference docs for local off-line reading of the API referencematerial. Look for a file named like wxPython-docs-VERSION.tar.gz.

  • A tarball containing the wxPython demo and samples. It is highlyencouraged for new wxPython users, and experienced ones too, to downloadthis file. It is a great learning resource with tons of examples showinghow to use various components of the wxPython library. Look for a filenamed like wxPython-demo-VERSION.tar.gz.

  • Zip files with *.pdb files which are Visual Studio debugger information files.

  • Binary wheel files for a few flavors of Linux.

The Bleeding Edge

Pip

If you're the daredevil type and prefer to work with the absolutely newestversion of wxPython, we've got a couple options for you.

Snapshot Builds

Each day that there are commits to wxPython Phoenix's master branch, thebuildbot will attempt to do a 'dailybuild'. If successful then the resulting wheels, docs, and source archiveswill be uploaded to the snapshots folder. Although these are not technically official releases, and may have new undiscovered and unsolved bugs, more than a few people use them successfully in their own projects.

GitHub

Linux Pip Install Python 2.7

wxPython's GitHub project is at https://github.com/wxWidgets/Phoenix. Ifyou want to tinker with the code (preferably in order to submit aPR) then this option is whatyou are looking for. Fork and clone a copy of the git repository foryourself and start tweaking away under the hood.

Since the generated files are not committed to git you will need to gothrough several more steps to generate and build the code, but they are allhandled by thebuild.pyscript and there is a overview of the process and the needed steps in theREADME. Ifyou get stuck then you can ask about it on wxPython-dev.

Old Releases

Osx Pip Install Location

The wxPython releases prior to 4.0 (a.k.a 'Classic' wxPython) will remainavailable atSourceForge.That includes source, documentation, the demo, and various binaryinstallers for Windows and Mac systems.