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
pipand Python are installed. We recommendpip3, and Python 3 version 3.8. If you are using Python 2, usepipinstead ofpip3andvirtualenvinstead ofvenv.
To install AWS ParallelCluster in a virtual environment
-
If
virtualenvis not installed, installvirtualenvusingpip3. Ifpython3 -m virtualenv helpdisplays 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.