Catalina4astronomers
From MediaWiki
(Difference between revisions)
m (→Anaconda) |
m (→Homebrew) |
||
Line 50: | Line 50: | ||
eval "$(pyenv init -)" | eval "$(pyenv init -)" | ||
fi | fi | ||
- | |||
- | |||
- | |||
== pip == | == pip == |
Revision as of 06:42, 6 September 2020
Contents |
Xcode
AppStore: Xcode terminal: xcode-select --install
Expanding repository list
brew tap "homebrew/bundle" brew tap "homebrew/core" brew tap "brewsci/science" brew tap "brewsci/bio" brew tap "brewsci/base" brew tap "brewsci/num" brew update
Other useful software
brew install coreutils brew install findutils brew install gnu-sed brew install gnu-tar brew install gnu-which brew cask install xquartz brew install ghostscript brew install gv brew install texshop brew install imagemagick brew install pgplot
# Edit ~/.bash_profile PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH" MANPATH="/usr/local/opt/coreutils/libexec/gnuman:$MANPATH" PATH="/usr/local/opt/findutils/libexec/gnubin:$PATH" MANPATH="/usr/local/opt/findutils/libexec/gnuman:$MANPATH" PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH" MANPATH="/usr/local/opt/grep/libexec/gnuman:$MANPATH" PATH="/usr/local/opt/grep/libexec/gnubin:$PATH" MANPATH="/usr/local/opt/gnu-which/libexec/gnuman:$MANPATH" PATH="/usr/local/opt/gnu-which/libexec/gnubin:$PATH" MANPATH="/usr/local/opt/gnu-sed/libexec/gnuman:$MANPATH" PATH="/usr/local/opt/gnu-tar/libexec/gnubin:$PATH" MANPATH="/usr/local/opt/gnu-tar/libexec/gnuman:$MANPATH" PATH="/usr/local/opt/make/libexec/gnubin:$PATH" MANPATH="/usr/local/opt/make/libexec/gnuman:$MANPATH"
python
brew install pyenv pyenv install 3.8.5 # 3.8.5 being the latest python version pyenv global 3.8.5 # set it as a global default version for pyenv environments pyenv version # Edit ~/.bash_profile with if command -v pyenv 1>/dev/null 2>&1; then eval "$(pyenv init -)" fi
pip
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py python get-pip.py
Anaconda
git clone --recursive git://github.com/astropy/astropy.git cd astropy pip install . conda install astropy conda install pytest-astropy
pPXF
pip install --upgrade ppxf pip show ppxf
Bertin's software
brew install sextractor brew install scamp sudo port install swarp
Astrometry
brew install svn brew install --HEAD netpbm brew install cfitsio brew install md5sha1sum brew install astrometry-net cd /usr/local/Cellar/astrometry-net/0.82 mkdir data cd data wget http://data.astrometry.net/4200/wget.sh . sh wget.sh # Test: cd .. solve-field --scale-low 10 examples/apod4.jpg
Save
# At the end save the list of installed software with brew in the file Brewfile brew bundle dump brew bundle brew bundle cleanup # Check the list cat Brewfile