Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions,
see Getting Started with Amazon Web Services in China
(PDF).
Install Amazon ParallelCluster in a virtual environment (recommended)
We recommend that you install Amazon ParallelCluster in a virtual environment to avoid requirement version conflicts
with other pip
packages.
To install Amazon ParallelCluster in a virtual environment
-
If virtualenv
is not installed, install virtualenv
using pip3
. If
python3 -m virtualenv help
displays help information, go to step 2.
- Linux, OS X, or Unix
-
$
python3 -m pip install --upgrade pip
$
python3 -m pip install --user --upgrade virtualenv
Run exit
to leave the current terminal window and open a new terminal window to pick up changes
to the environment.
- Windows
-
C:\>
pip3 install --user --upgrade virtualenv
Run exit
to leave the current command prompt and open a new command prompt to pick up changes
to the environment.
-
Create a virtual environment and name it.
- Linux, OS X, or Unix
-
$
python3 -m virtualenv ~/apc-ve
Alternatively, you can use the -p
option to specify a specific version of Python.
$
python3 -m virtualenv -p $(which python3) ~/apc-ve
- Windows
-
C:\>
virtualenv %USERPROFILE%\apc-ve
-
Activate your new virtual environment.
- Linux, OS X, or Unix
-
$
source ~/apc-ve
/bin/activate
- Windows
-
C:\>
%USERPROFILE%\apc-ve
\Scripts\activate
-
Install Amazon ParallelCluster into your virtual environment.
- Linux, OS X, or Unix
-
(apc-ve)~$
python3 -m pip install --upgrade "aws-parallelcluster<3.0"
- Windows
-
(apc-ve) C:\>
pip3 install --upgrade "aws-parallelcluster<3.0"
-
Verify that Amazon ParallelCluster is installed correctly.
- Linux, OS X, or Unix
-
$
pcluster version
2.11.9
- Windows
-
(apc-ve) C:\>
pcluster version
2.11.9
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 Amazon ParallelCluster, run the installation command again.
- Linux, OS X, or Unix
-
(apc-ve)~$
python3 -m pip install --upgrade "aws-parallelcluster<3.0"
- Windows
-
(apc-ve) C:\>
pip3 install --upgrade "aws-parallelcluster<3.0"