Last active
February 17, 2022 11:14
-
-
Save tommylees112/d0e951013d09a603b1bacb67f4c2f896 to your computer and use it in GitHub Desktop.
Pystan2 environment for linux machines
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
conda create -n stan2 python=3.7 --yes | |
conda activate stan2 | |
conda install -c anaconda gcc_linux-64 gxx_linux-64 --yes | |
## FOR MAC: | |
# conda install -c anaconda clang_osx-64 clangxx_osx-64 --yes | |
conda install -c conda-forge numpy pandas scipy cython ipython jupyterlab matplotlib freetype --yes | |
python -m pip install --upgrade pip | |
pip install pystan==2.19.0.0 | |
conda install -c conda-forge arviz --yes | |
python -c "import pystan; import arviz" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Error when trying to create environment on M1 Mac:
conda create -n stan2 python=3.7 --yes conda activate stan2 ## FOR MAC: conda install -c anaconda clang_osx-64 clangxx_osx-64 --yes conda install -c conda-forge numpy pandas scipy cython ipython jupyterlab matplotlib freetype --yes python -m pip install --upgrade pip pip install pystan==2.19.0.0 conda install -c conda-forge arviz --yes
The following discussion on Stan Discord