Skip to content

Commit

Permalink
Add pip3 commands for Python 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
fdalmaup committed Sep 15, 2023
1 parent f0913fe commit 0f5fb0e
Show file tree
Hide file tree
Showing 3 changed files with 97 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,24 @@ 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
.. 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 <https://peps.python.org/pep-0668/>`_). 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.

# pip3 install --upgrade pip

.. _boto-3:

Expand All @@ -66,6 +81,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
.. note::

In the case of using a virtual environment, the ``--break-system-packages`` parameter should be removed from the command.
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,23 @@ 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
.. tabs::

.. group-tab:: Python 3.7 - 3.10

.. code-block:: console
# pip3 install --upgrade pip
# 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 <https://peps.python.org/pep-0668/>`_). 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.

Azure Storage Blobs client library for Python
---------------------------------------------
Expand All @@ -64,6 +78,20 @@ Azure Storage Blobs client library for Python

To install the Azure Storage Blobs client library for Python, execute the following command:

.. code-block:: console
.. tabs::

.. group-tab:: Python 3.7 - 3.10

.. code-block:: console
# pip3 install azure-storage-blob==2.1.0 azure-storage-common==2.1.0 azure-common==1.1.25 cryptography==3.3.2 cffi==1.14.4 pycparser==2.20 six==1.14.0 python-dateutil==2.8.1 requests==2.25.1 certifi==2022.12.07 chardet==3.0.4 idna==2.9 urllib3==1.26.5 SQLAlchemy==1.3.11 pytz==2020.1
.. group-tab:: Python 3.11

.. code-block:: console
# pip3 install --break-system-packages azure-storage-blob==2.1.0 azure-storage-common==2.1.0 azure-common==1.1.25 cryptography==3.3.2 cffi==1.14.4 pycparser==2.20 six==1.14.0 python-dateutil==2.8.1 requests==2.25.1 certifi==2022.12.07 chardet==3.0.4 idna==2.9 urllib3==1.26.5 SQLAlchemy==1.3.11 pytz==2020.1
# pip3 install azure-storage-blob==2.1.0 azure-storage-common==2.1.0 azure-common==1.1.25 cryptography==3.3.2 cffi==1.14.4 pycparser==2.20 six==1.14.0 python-dateutil==2.8.1 requests==2.25.1 certifi==2022.12.07 chardet==3.0.4 idna==2.9 urllib3==1.26.5 SQLAlchemy==1.3.11 pytz==2020.1
.. note::

In the case of using a virtual environment, the ``--break-system-packages`` parameter should be removed from the command.
36 changes: 32 additions & 4 deletions source/cloud-security/gcp/prerequisites/dependencies.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,23 @@ 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
.. 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
# 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 <https://peps.python.org/pep-0668/>`_). 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.

Google Cloud pip dependencies
-----------------------------
Expand All @@ -64,6 +78,20 @@ Google Cloud 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 cachetools==4.1.0 certifi==2022.12.07 cffi==1.14.4 chardet==3.0.4 charset-normalizer==2.0.4 google-api-core==1.30.0 google-auth==1.28.0 google-cloud-core==1.7.1 google-cloud-pubsub==2.7.1 google-cloud-storage==1.39.0 google-crc32c==1.1.2 google-resumable-media==1.3.1 googleapis-common-protos==1.51.0 grpc-google-iam-v1==0.12.3 grpcio==1.38.1 idna==2.9 libcst==0.3.20 mypy-extensions==0.4.3 packaging==20.9 proto-plus==1.19.0 protobuf==3.19.6 pyasn1-modules==0.2.8 pyasn1==0.4.8 pycparser==2.20 pyparsing==2.4.7 pytz==2020.1 PyYAML==5.4.1 requests==2.25.1 rsa==4.7.2 setuptools==59.6.0 six==1.14.0 typing-extensions==3.10.0.2 typing-inspect==0.7.1 urllib3==1.26.5
.. group-tab:: Python 3.11

.. code-block:: console
# pip3 install --break-system-packages cachetools==4.1.0 certifi==2022.12.07 cffi==1.14.4 chardet==3.0.4 charset-normalizer==2.0.4 google-api-core==1.30.0 google-auth==1.28.0 google-cloud-core==1.7.1 google-cloud-pubsub==2.7.1 google-cloud-storage==1.39.0 google-crc32c==1.1.2 google-resumable-media==1.3.1 googleapis-common-protos==1.51.0 grpc-google-iam-v1==0.12.3 grpcio==1.38.1 idna==2.9 libcst==0.3.20 mypy-extensions==0.4.3 packaging==20.9 proto-plus==1.19.0 protobuf==3.19.6 pyasn1-modules==0.2.8 pyasn1==0.4.8 pycparser==2.20 pyparsing==2.4.7 pytz==2020.1 PyYAML==5.4.1 requests==2.25.1 rsa==4.7.2 setuptools==59.6.0 six==1.14.0 typing-extensions==3.10.0.2 typing-inspect==0.7.1 urllib3==1.26.5
# pip3 install cachetools==4.1.0 certifi==2022.12.07 cffi==1.14.4 chardet==3.0.4 charset-normalizer==2.0.4 google-api-core==1.30.0 google-auth==1.28.0 google-cloud-core==1.7.1 google-cloud-pubsub==2.7.1 google-cloud-storage==1.39.0 google-crc32c==1.1.2 google-resumable-media==1.3.1 googleapis-common-protos==1.51.0 grpc-google-iam-v1==0.12.3 grpcio==1.38.1 idna==2.9 libcst==0.3.20 mypy-extensions==0.4.3 packaging==20.9 proto-plus==1.19.0 protobuf==3.19.6 pyasn1-modules==0.2.8 pyasn1==0.4.8 pycparser==2.20 pyparsing==2.4.7 pytz==2020.1 PyYAML==5.4.1 requests==2.25.1 rsa==4.7.2 setuptools==59.6.0 six==1.14.0 typing-extensions==3.10.0.2 typing-inspect==0.7.1 urllib3==1.26.5
.. note::

In the case of using a virtual environment, the ``--break-system-packages`` parameter should be removed from the command.

0 comments on commit 0f5fb0e

Please sign in to comment.