Installation Guide#
SlothPy is designed for easy installation, offering flexible options to suit a variety of user preferences. You can install SlothPy directly using pip, either within a virtual environment (recommended) or system-wide.
Note
SlothPy requires Python 3.10 or higher for installation, with Python 3.11 recommended for improved performance.
Install via pip#
The simplest way to install SlothPy is via pip.
Creating a Virtual Environment (Recommended):
Using a virtual environment is a good practice as it manages dependencies effectively and keeps your workspace organized.
On Linux/macOS:
Open your terminal.
Create a new virtual environment:
python3 -m venv SlothPy_Env
Activate the virtual environment:
source SlothPy_Env/bin/activate
On Windows:
Open Command Prompt.
Create a new virtual environment:
python -m venv SlothPy_Env
Activate the virtual environment:
SlothPy_Env\Scripts\activate
Installing SlothPy:
With the virtual environment activated (or directly in your system), install SlothPy using pip:
pip install slothpy
This will install SlothPy along with all necessary dependencies.
Install from GitHub Repository#
For those who prefer to install directly from the source:
Clone the SlothPy repository:
git clone https://github.com/MTZ-dev/slothpy.git
Navigate to the cloned directory:
cd slothpy
Now you can install the package in editable mode:
pip install -e .
or just set up the environment by installing the requirements file:
cd slothpy pip install -r requirements.txt
Note
When installing SlothPy from the GitHub repository this way, ensure your scripts are in the same directory as SlothPy to enable proper importing of the SlothPy modules.
You’re all set! SlothPy is now installed and ready for use.
Getting Started#
Once SlothPy is installed, dive into its features by visiting the How to Start section. We’re excited to see the innovative ways you’ll use SlothPy in your molecular magnetism research!
Keep Your Version Up to Date#
SlothPy is a dynamically evolving software, with frequent updates to enhance features and performance. To ensure you are always working with the latest advancements, we recommend regularly updating your installation.
To update SlothPy, use the following pip command:
pip install -U slothpy
This command will upgrade SlothPy to the latest available version, along with any required dependencies, ensuring you have access to the most current tools and improvements.