Managing Python packages is often a bottleneck for molecular modelers and researchers who rely on automation and scripting workflows. SAMSON simplifies this process with its integrated Python Package Manager, allowing you to efficiently manage dependencies and ensure seamless scripting environments. If you’ve been struggling with keeping your Python packages up-to-date or installing non-standard packages, read on to learn how SAMSON transforms package management into an intuitive experience.
How to Manage Python Packages in SAMSON
SAMSON’s Python Console allows users to manage packages directly. Here’s how you can access and use its Python Package Manager:
- In the Python Console, navigate to Edit > Manage Packages…. This will open the Python Package Manager window.
- From this interface, you can view the list of installed packages, check their versions, and install or uninstall packages as needed.

Installing Python Packages
To install a package:
- Type the name of the package you want to install in the input field.
- Click Install.

The integrated Package Manager uses pip, meaning you can specify versions and add flags as you would in any Python environment. For instance:
numpy==1.21.0: Installs version 1.21.0 of numpy.pandas --upgrade: Upgrades pandas to the latest version.- Install multiple packages simultaneously by listing them, e.g.,
numpy pandas scipy.
Installing Local Python Packages
If you’re working on custom scripts or testing tools not available via PyPI, SAMSON’s Package Manager allows local package installation:
- Provide the path to the local package (it must be a valid Python package with a setup file).
- Click Install.
Moreover, SAMSON supports editable mode for local packages, akin to pip install -e. This feature dynamically reflects changes in the source code without requiring reinstallation—a boon for developers refining scripts or testing libraries.

Note: On some macOS installations, editable-mode packages may not load properly on the next SAMSON launch. If this happens, reinstall packages in non-editable mode or adjust their path in sys.path.
Removing Python Packages
Uninstalling is just as simple:
- Enter the name of the package to be removed.
- Click Uninstall.
Why This Matters for Modelers
Working with dynamic Python ecosystems often requires juggling dependencies. Whether you’re integrating deep-learning libraries, analyzing bioinformatics data, or running customized molecular simulations, SAMSON ensures that your development environment is always ready. The Python Package Manager elevates your productivity, allowing you to focus on modeling workflows instead of environment troubleshooting.
Learn more about SAMSON’s powerful scripting and package management tools by visiting the official documentation page.
Note: SAMSON and all SAMSON Extensions are free for non-commercial use. You can get SAMSON at samson-connect.net.
