Setting Up Your Environment & Installing Simmate¶
A virtual environment isolates your Python projects to prevent conflicts between different software versions. We'll use either uv or Anaconda to manage this.
1. Environment Creation¶
Choose your preferred tool to create an environment. You can name it anything (e.g., my_env), but use underscores instead of spaces.
uv venv my_env
conda create -n my_env -c conda-forge python=3.11
2. Environment Activation¶
Switch to your new environment:
source my_env/bin/activate # On Windows use: my_env\Scripts\activate
conda activate my_env
If you activated your environment successfully, the start of your terminal line will change to show your environment name — for example, (my_env).
3. Simmate Installation¶
With your environment active, install the Simmate package:
uv pip install simmate
conda install -c conda-forge simmate
4. IDE Installation (Optional)¶
If you're new to coding, we recommend the Spyder IDE for writing Python code.
- Download and run the Standalone Installer from the Spyder website.
- In your
my_envterminal, install thespyder-kernelspackage:uv pip install spyder-kernels - Once both are installed, you'll need to point Spyder to your
my_envPython interpreter. We'll cover this in a later tutorial.
You can install Spyder directly into your environment:
conda install -c conda-forge spyder