This document describes in which way, what packages, and from where are installed on my Macs to get a decent Python 3.x, scipy/numpy & Co setup.
Note, I switched to Python's 3.x pyvenv from virtualenv in order to handle my pip-installable packages. Also thanks to Anaconda, the whole setup is so simple now that I use this document just to remember which additional packages I like.
-
Install Homebrew
-
Install the Anaconda Python distribution
-
Optional Pyvenv (virtual env)
pyvenv --system-site-packages ~/Pyto set up a virtual environment. Using the default symlink mode, has got an issue with brew's Python but I am using the executable from the Anaconda distribution now.- Don't forget to
source ~/Py/bin/activate. - To upgrade when Anaconda has a newer Python:
pyvenv --upgrade ~/Py
-
Unit testing framework:
pip install coveragepip install nose-progressiveNose plug-in with progress bars. Run withnosetests --with-progressive
-
Progess bar
pip install pyprind
-
Debugging -
pip install debug -
OpenGL bindings:
pip install pyopengl
-
VisPy: Most promising next gen visualizations
git clone https://github.com/vispy/vispy.gitcd vispypython setup.py install
-
GPU computing with numpy arrays:
git clone http://git.tiker.net/trees/pyopencl.git pyopenclcd pyopenclgit submodule update --initpython configure.py --cl-enable-glpython setup.py install
-
Cython for writing C-extensions in Python-like speak
pip install cython
-
Modular Data Processing Toolkit. (needs numpy):
git clone git://github.com/mdp-toolkit/mdp-toolkitcd mdp-toolkitpython setup.py install
-
Memory profiling and shell tools:
pip install psutilpip install memory_profiler
-
Read/write DICOM files (medical software) -
pip install pydicom(or git clone and install by python3 setup.py install)
Todo
Install kivy
figure out best way to pass ars to pip so that the includes and libs of the homebrew stuff is found.
-
PyYAML ... can't find libyaml. fuck.
-
CFFI (C calling foregin functions. Needed for PyOpenCL if built from source)
brew install libffiPKG_CONFIG_PATH=$(brew --prefix)/opt/libffi/lib/pkgconfig pip install cffi
-
GUI toolkits:
- todo: py3 ready?
brew install qtbrew install pysideor pyqt?brew install vtk --python(the--qtoption is currently not working on Xcode-only Macs)
-
Audio and sound generation:
brew install liblo libsndfile portaudio portmidicd tmpsvn checkout http://pyo.googlecode.com/svn/trunk/ pyocd pyosudo python setup.py install --use-coreaudio --use-double- use scikit-audiolab instead?
ping @wonbyte :-)