Efficiency is crucial when working on complex molecular modeling tasks, and being able to manage Python packages directly within your modeling platform can be a game-changer. If you’re using SAMSON, you have all the tools you need to install, manage, and even debug Python packages right at your fingertips. Let’s explore how SAMSON’s integrated Python Package Manager can simplify and enhance your workflow.
What is the Python Package Manager?
SAMSON includes a Python package management feature, accessible via the Python Console. By navigating to Edit > Manage packages…, you can open the Python Package Manager and gain complete control over Python modules.
Using this tool, you can:
- Install Python packages from PyPI or locally.
- Specify package versions, just as you would when using
pipin a standalone Python environment. - Effortlessly uninstall packages that are no longer needed.
This removes the need for external Python environments and ensures that you stay focused within your modeling workspace. Whether you’re adding a package for data visualization, numerical analysis, or advanced machine learning tasks, the process is intuitive and designed for convenience.
Installing Python Packages
To install a Python package:
- Open the Python Package Manager.
- In the input field, type the name of the package you want to install.
- Click Install.
Want a specific version? Simply specify it in the input field. For example:
package-name==1.2.0– Installs version 1.2.0 of the package.package-name>=2.0.0– Ensures the package is installed with at least version 2.0.0.
You can even include pip flags, such as --upgrade, to fetch the latest version of an installed package. The package manager mirrors standard pip commands, meaning there’s no new syntax to learn if you’re already familiar with Python development.

Installing Local Packages
Need to integrate a locally stored Python package? SAMSON makes this easy too. Specify the path to the package in the package manager and click Install. With support for Python’s setup.py structure, SAMSON ensures compatibility with professional workflows.
What makes this feature even more powerful is the ability to install local Python packages in editable mode (similar to pip install -e). Editable mode directly links your package’s source files, meaning changes you make in the code are automatically reflected without having to reinstall the package. This is especially useful for debugging or developing custom scripts and tools for use in SAMSON.

Note: To avoid potential issues with editable mode on macOS, particularly package loading during subsequent sessions, you might need to install in non-editable mode or make manual adjustments to the Python sys.path.
Uninstalling Packages
If your workflow changes and you no longer need a package, uninstalling is straightforward:
- Enter the name of the package in the Python Package Manager’s input field.
- Click Uninstall.
The manager handles both PyPI-installed and local packages seamlessly, ensuring your development environment remains clean and efficient.
Why Integrated Package Management Matters
Having a built-in Python environment within your molecular modeling platform eliminates the need to switch between external tools. Whether you’re configuring a complex machine learning pipeline, performing statistical analysis, or simply testing scripts for visualization tasks, SAMSON’s Python Package Manager gives you the flexibility and convenience needed to focus on what matters: advancing your research.
To learn more about managing Python packages in SAMSON, check out the Python scripting documentation.
Note: SAMSON and all SAMSON Extensions are free for non-commercial use. You can get SAMSON at https://www.samson-connect.net.
