How to install requests_credssp on offline environment

This guide shows how to install requests_credssp (Python package) on offline (blocked internet access) situations.

Note: The entire procedures for setting up to manage Windows Server with Ansible are the following posts.

Preparations

Refer to the following post and install pywinrm.

>> How to install pywinrm on offline environment

Procedures

1. Download packages

(1) Download the following whl files on an online (internet-accessible) environment.
Note: File name is as of the day I installed.

(2) Copy the downloaded whl files to the server that request_credssp is to be installed on.

2. Install required packages

(1) Install whl packages in sequence.

  • pyspnego
chmod 755 pyspnego-0.3.1-py2.py3-none-any.whl 
pip install pyspnego-0.3.1-py2.py3-none-any.whl 
  • pyOpenSSL
chmod 755 pyOpenSSL-22.0.0-py2.py3-none-any.whl
pip install pyOpenSSL-22.0.0-py2.py3-none-any.whl
  • pyasn1
chmod 755 pyasn1-0.4.8-py2.py3-none-any.whl
pip install pyasn1-0.4.8-py2.py3-none-any.whl

(2) Check the dependencies of packages.

pip check

If it shows the following, no problems.

No broken requirements found.

3. Install requests_credssp

(1) Install requests_credssp.

chmod 755 requests_credssp-1.3.0-py2.py3-none-any.whl
pip install requests_credssp-1.3.0-py2.py3-none-any.whl

(2) Check the dependencies of packages.

pip check

If it shows the following, no problems.

No broken requirements found.

That’s about it.