-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
Before you begin, ensure you have met the following requirements:
- You have miniconda installed on your system
PyCMTensor is available on Conda Forge. You can install it using the following command:
conda update -n base -c defaults conda
conda install -c conda-forge pycmtensorFor isolated development or testing, we recommend installing PyCMTensor in a virtual environment:
conda create -n pycmtensor -c conda-forge pycmtensor
conda activate pycmtensorYou can verify your installation by checking the version of PyCMTensor:
python -c "import pycmtensor as cmt; print(cmt.__version__)"To update PyCMTensor to the latest version, run the following command:
conda update pycmtensorIf you want to contribute to the project or prefer to build from source, you can clone the source code from the GitHub repository:
git clone https://github.com/mwong009/pycmtensor.gitChange your current directory to the cloned repository:
cd pycmtensorCreate a new Conda environment using the provided environment.yml file, and activate it:
conda env create -f environment.yml
conda activate pycmtensor
conda install ipykernel poetry
poetry install --with docs,test,lintThis will set up a development environment with all the necessary dependencies installed. You can now start contributing to PyCMTensor or build it from source.