Install AWS ParallelCluster in a virtual environment (recommended)
We recommend that you install AWS ParallelCluster in a virtual environment to avoid requirement version conflicts
with other pip
packages.
Prerequisites
-
Verify that
pip
and Python are installed. We recommendpip3
, and Python 3 version 3.8. If you are using Python 2, usepip
instead ofpip3
andvirtualenv
instead ofvenv
.
To install AWS ParallelCluster in a virtual environment
-
If
virtualenv
is not installed, installvirtualenv
usingpip3
. Ifpython3 -m virtualenv help
displays help information, go to step 2. -
Create a virtual environment and name it.
-
Activate your new virtual environment.
-
Install AWS ParallelCluster into your virtual environment.
-
Verify that AWS ParallelCluster is installed correctly.
You can use the deactivate
command to exit the virtual environment. Each time you start a session,
you must reactivate the environment.
To upgrade to the latest version of AWS ParallelCluster, run the installation command again.