From 4e47b41d48224de663d5a88a3f66fc34ef00986a Mon Sep 17 00:00:00 2001 From: Facundo Dalmau Date: Fri, 15 Sep 2023 13:48:46 -0300 Subject: [PATCH] Add pip3 command for Python 3.11 --- .../services/prerequisites/dependencies.rst | 38 +++++++++++++++++-- 1 file changed, 34 insertions(+), 4 deletions(-) diff --git a/source/cloud-security/amazon/services/prerequisites/dependencies.rst b/source/cloud-security/amazon/services/prerequisites/dependencies.rst index c9c02b387b..71ffe798da 100644 --- a/source/cloud-security/amazon/services/prerequisites/dependencies.rst +++ b/source/cloud-security/amazon/services/prerequisites/dependencies.rst @@ -53,9 +53,25 @@ The required modules can be installed with Pip, the Python package manager. Most It is recommended to use a pip version greater than or equal to 19.3 to ease the installation of the required dependencies. -.. code-block:: console - # pip3 install --upgrade pip +.. tabs:: + + .. group-tab:: Python 3.7 - 3.10 + + .. code-block:: console + + # pip3 install --upgrade pip + + .. group-tab:: Python 3.11 + + .. code-block:: console + + # pip3 install --upgrade pip --break-system-packages + + .. note:: + + The ``--break-system-packages`` parameter is required to make the install on the default externally managed environment (more information on the `PEP 668 description `_). To avoid it, the command can be executed inside a virtual environment but this would require a modification on the ``aws-s3`` script shebang to use the environment's interpreter. + .. _boto-3: @@ -66,6 +82,20 @@ AWS pip dependencies To install the dependencies, execute the following command: -.. code-block:: console +.. tabs:: + + .. group-tab:: Python 3.7 - 3.10 + + .. code-block:: console + + # pip3 install boto3==1.17.85 botocore==1.20.85 jmespath==0.9.5 python-dateutil==2.8.1 six==1.14.0 urllib3==1.26.5 s3transfer==0.4.2 pyarrow==8.0.0 numpy==1.21.6 + + .. group-tab:: Python 3.11 + + .. code-block:: console + + # pip3 install --break-system-packages boto3==1.17.85 botocore==1.20.85 jmespath==0.9.5 python-dateutil==2.8.1 six==1.14.0 urllib3==1.26.5 s3transfer==0.4.2 pyarrow==8.0.0 numpy==1.21.6 - # pip3 install boto3==1.17.85 botocore==1.20.85 jmespath==0.9.5 python-dateutil==2.8.1 six==1.14.0 urllib3==1.26.5 s3transfer==0.4.2 pyarrow==8.0.0 numpy==1.21.6 \ No newline at end of file + .. note:: + + In the case of using a virtual environment, the ``--break-system-packages`` parameter should be removed from the command.