For molecular modelers leveraging Python to automate workflows, manage analyses, or implement custom algorithms, an efficient package management system is essential. SAMSON’s integrated Python environment simplifies this process tremendously. This blog post dives into how SAMSON empowers you to manage Python packages seamlessly, saving time and effort while ensuring you can focus on your core modeling tasks.
Why Package Management Matters
When incorporating Python in molecular modeling workflows, users often need to install specific libraries for tasks like machine learning, bioinformatics, visualization, or statistical analysis. Managing these libraries can become challenging, especially for users who frequently switch between projects or need to maintain version compatibility.
To address this, SAMSON’s Python Package Manager, accessible through its Python Console interface, provides a user-friendly solution. Whether you want to install, update, or uninstall packages, SAMSON offers an intuitive way to handle dependencies, ensuring your Python environment is always optimized for your current needs.
Getting Started with the Python Package Manager
To access the Python Package Manager in SAMSON:
- Launch the Python Console within the SAMSON interface by navigating to Interface > Python Console.
- Click on Edit > Manage packages…. This opens the Python Package Manager window, displaying installed packages and their respective versions.

Installing Python Packages
Adding new Python libraries in SAMSON is straightforward:
- Type the name of the desired package in the Package Manager interface and click Install.
- You can specify additional options like targeted versions (e.g.,
package==1.3.0) orpipflags (e.g.,package --upgrade).

Installing Local Python Packages
Installing custom or local Python packages is often needed in specialized research workflows. SAMSON supports this:
- Provide the path to the local Python package (e.g., containing a
setup.pyfile). - Select the option to install in regular or editable (
pip install -e) mode, depending on whether you plan to make changes to the package.
The editable mode is particularly useful for dynamically reflecting changes to packages under development. However, macOS users should note potential limitations with editable packages in specific configurations. If issues arise, non-editable installation may be more stable.

Uninstalling Python Packages
To remove a Python package:
- Enter the package name in the Package Manager and click Uninstall.
SAMSON ensures clean removal of unnecessary dependencies, keeping your environment efficient and clutter-free.
The Benefits of Integrated Package Management in SAMSON
By integrating package management directly into SAMSON, the platform eliminates the need for command-line interactions or external environment management tools. This tight integration ensures that your workflows remain focused on research rather than tooling, enabling you to:
- Quickly adapt your environment for project-specific requirements.
- Effortlessly update packages to benefit from the latest advancements.
- Maintain compatibility and transparency by controlling package versions.
Take Your Next Step
Effective Python package management is a cornerstone of streamlined molecular modeling workflows. Explore the full potential of SAMSON’s integrated environment by visiting the official documentation page to learn more about scripting and automation.
Note: SAMSON and all SAMSON Extensions are free for non-commercial use. Get started now by visiting SAMSON Connect.
