PyPI Mirror
module purgemodule load python/3.11.11python -m venv <env_name>source env_name/bin/activatepip install <package>deactivate
Last updated
Was this helpful?
This PyPI mirror setup applies only to the RHEL 7 system and is not compatible with the migrated RHEL 9 environment.
On the Stronghold Linux workstation, if you want to install Python packages using the PyPI mirror, you must first create and activate a Python environment. Packages must be installed within an active Python virtual environment.
Please follow these steps:
Clear all currently loaded modules.
module purgeLoad the desired Python module (for example, Python 3.11.11).
module load python/3.11.11Create a new virtual environment (replace <env_name> with your preferred name).
python -m venv <env_name>Activate the virtual environment.
source env_name/bin/activateInstall the desired package using pip (replace <package> with the actual package name).
pip install <package>If you want to deactivate the environment, run:
deactivateLast updated
Was this helpful?
Was this helpful?