I'd suggest using the Python.org version of Python, not the one that came with OSX, as there are some issues that are most easily overcome by installing the latest version - 2.7.4 in the case of the 2.x branch. Don't worry about breaking anything, both versions will happily coexist together. Once you have that, you can install the latest NumPy and SciPy binaries (get the 10.6 dmg
files). NumPy is required for SciPy to work.
Make sure you set up PyCharm to work with the new version of Python, and double-check that your modules are installed in the right site-packages
directory (it should be /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/
). You can always copy all of the files in your /Library/Python/2.7/site-packages/
directory to the one I just mentioned, as the major.minor version of Python (2.7) is still the same. Then, you should be good to go. You will likely want to symlink /usr/local/bin/python
to /Library/Frameworks/Python.framework/Versions/2.7/bin/python
(it may be already) to make an easier shebang line, and don't forget to put /usr/local/bin
in front of /usr/bin
in your PATH
for when you do command-line work, and for #!/usr/bin/env python
shebangs. Good luck!