- Install pixi:
- Run this in PowerShell:
powershell -ExecutionPolicy ByPass -c "irm -useb <https://pixi.sh/install.ps1> | iex"
- Run this in PowerShell:
- Create the environment in a project directory
- Download this repository as a zip file and extract it into an empty director
- This will be your project direcotry
- Open a command prompt in the new direcotry
- In the command prompt type:
- In the cloned repository run
pixi install- This will install the environment you need for PyMC
- Download this repository as a zip file and extract it into an empty director
- Set up VS Code
- Make sure
pixiextension to VS Code is installed - Type
code .to start VS Code- Or click Repository -> Open repository in VS Code in GitHub Desktop
- VS Code should automatically recognize the environment and suggest it as the default Python environment
- Make sure
- Run the demo files
- There are two demo files:
- Straight python:
pymc_demo.py - Jupyter notebook:
pymc_demo.ipynb
- Straight python:
- There are two demo files:
- Install necessary software
- Create the environment in the project directory
- Download this repository as a zip file and extract it into an empty directory
- This will be your project direcotry
- Open a command prompt in the new direcotry
- With the current directory being the project direcotry, type into the commmand prompt:
pixi project export conda-environment > environment.yml- This will create an environment specification file for mamba/conda
- Mamba / conda are compatible with PyCharm
- This will create an environment specification file for mamba/conda
mamba env create -f environment.yml -n project_name- Replace
project_namewith the name for the environment - PyCharm expects this to be the name of the directory
- Replace
mamba activate project_namemamba install m2w64-toolchain- This installs the compiler that pymc uses
- Download this repository as a zip file and extract it into an empty directory
- Setup PyCharm
- Open PyCharm and use it to open the project directory
- Go to Settings (gear bar upper right or Ctrl-Alt-S) -> Project -> Python Interpreter
- Click
add interpreter->add local interpreter- Under
Typechoose Conda - Under
Namechoose theproject_name- You may need to type it in
- Under
- Re-read the package list
File->Invalidate cachesand thenIvalidate and restart
- Run the demo files
- There are two demo files:
- Straight python:
pymc_demo.py - Jupyter notebook:
pymc_demo.ipynb
- Straight python:
- There are two demo files:
There is probably a way to get Spyder to work with a regular install, but I got it to work by installing it into the environment
- Install pixi:
- Run this in PowerShell:
powershell -ExecutionPolicy ByPass -c "irm -useb <https://pixi.sh/install.ps1> | iex"
- Run this in PowerShell:
- Create the environment in a project directory
- Download this repository as a zip file and extract it into an empty director
- This will be your project direcotry
- Open a command prompt in the new direcotry
- In the command prompt type:
- In the cloned repository run
pixi install- This will install the environment you need for PyMC
- Install
spyderinto thepixienvironmentpixi add spyder numpy scipy pandas matplotlib sympy cython
- Download this repository as a zip file and extract it into an empty director
- Run Spyder from within the pixi environment
- Still in the command prompt and still in the project directory, type:
pixi shellspyder
- This will open a spyder fully setup with the appropriate environment
- Still in the command prompt and still in the project directory, type:
- Run the demo files
- Spyder doesn't support Jupyter notebooks, so you only have the straight Python:
pymc_demo.py
- Spyder doesn't support Jupyter notebooks, so you only have the straight Python: