The two are kept separate by the fact that STSCI_PYTHON is all run in csh, setting all of the necessary environment path variables when you invoke that shell. I’m still using the STSCI_PYTHON distribution for other things, as I didn’t figure out what would be necessary to plug IRAF and PyRAF into the HomeBrew distribution of python. The result of this is a fresh, clean Python installation that can easily be upgraded and that is easy to install additional modules. Other useful modules appeared to install simply with pip: ![]() The result is that pip and easy_install put things in /usr/local/lib/python2.7/site-packages/.Īs described in the link above, to be able to use the HomeBrew pip and easy_install, you have to modify your PATH variable as follows, perhaps in ~/.bashrc:Įxport PATH="/usr/local/bin:/usr/local/share/python:$" As usual, it puts the files releated to the installation in /usr/local/Cellar and symlinks the necessary things to /usr/local/, but it also is a bit more careful about the site-packages directory so that it and anything you install yourself doesn’t get removed if you upgrade the HomeBrew Python distribution, as described here. ![]() HomeBrew offers a nice way of installing a Python distribution with a single command.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |