Skip to content

Instantly share code, notes, and snippets.

@tommylees112
Last active February 17, 2022 11:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tommylees112/d0e951013d09a603b1bacb67f4c2f896 to your computer and use it in GitHub Desktop.
Save tommylees112/d0e951013d09a603b1bacb67f4c2f896 to your computer and use it in GitHub Desktop.
Pystan2 environment for linux machines
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"
@tommylees112
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment