Python Modules
2020NOV21 - docs signed for devesp
Get the python version in the system
(β |k8s-lab-a1:default)
Sat 2020Nov21 18:49:41 PST
orion@mactop: ~
hist:302 -> python --version
Python 3.8.5Find the python modules currently installed
-> pip3 list
Package Version
---------- -------
pip 20.1.1
setuptools 49.2.0
wheel 0.34.2Install the ANSIBLE module
-> pip3 install ansible
Collecting ansible
Downloading ansible-2.10.3.tar.gz (28.0 MB)
|ββββββββββββββββββββββββββββββββ| 28.0 MB 423 kB/s
Collecting ansible-base<2.11,>=2.10.3
Downloading ansible-base-2.10.3.tar.gz (5.8 MB)
|ββββββββββββββββββββββββββββββββ| 5.8 MB 1.6 MB/s
Collecting jinja2
Downloading Jinja2-2.11.2-py2.py3-none-any.whl (125 kB)
|ββββββββββββββββββββββββββββββββ| 125 kB 1.3 MB/s
Collecting PyYAML
Downloading PyYAML-5.3.1.tar.gz (269 kB)
|ββββββββββββββββββββββββββββββββ| 269 kB 1.3 MB/s
Collecting cryptography
Downloading cryptography-3.2.1-cp35-abi3-macosx_10_10_x86_64.whl (1.8 MB)
|ββββββββββββββββββββββββββββββββ| 1.8 MB 1.3 MB/s
Collecting packaging
Downloading packaging-20.4-py2.py3-none-any.whl (37 kB)
Collecting MarkupSafe>=0.23
Downloading MarkupSafe-1.1.1-cp38-cp38-macosx_10_9_x86_64.whl (16 kB)
Collecting cffi!=1.11.3,>=1.8
Downloading cffi-1.14.3-2-cp38-cp38-macosx_10_9_x86_64.whl (176 kB)
|ββββββββββββββββββββββββββββββββ| 176 kB 905 kB/s
Collecting six>=1.4.1
Downloading six-1.15.0-py2.py3-none-any.whl (10 kB)
Collecting pyparsing>=2.0.2
Downloading pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
|ββββββββββββββββββββββββββββββββ| 67 kB 1.2 MB/s
Collecting pycparser
Downloading pycparser-2.20-py2.py3-none-any.whl (112 kB)
|ββββββββββββββββββββββββββββββββ| 112 kB 1.1 MB/s
Building wheels for collected packages: ansible, ansible-base, PyYAML
Building wheel for ansible (setup.py) ... done
Created wheel for ansible: filename=ansible-2.10.3-py3-none-any.whl size=46091823 sha256=655ca12cddf7e236b99c710e43931d4406d96ea1eb019994e6021c145edd9ee4
Stored in directory: /Users/afoot/Library/Caches/pip/wheels/d4/aa/67/ab673e276d0f02bb35ac71ba7491b8456d56b3c7fe4322e7cb
Building wheel for ansible-base (setup.py) ... done
Created wheel for ansible-base: filename=ansible_base-2.10.3-py3-none-any.whl size=1862869 sha256=65ddc9c632d0f92f7b2b129249f021620467e05539c1eaf65ed163af30f8f2d6
Stored in directory: /Users/afoot/Library/Caches/pip/wheels/cb/f5/61/a226fbdb73687e5e8988c7485cc004e557e6b881565060ba62
Building wheel for PyYAML (setup.py) ... done
Created wheel for PyYAML: filename=PyYAML-5.3.1-cp38-cp38-macosx_10_15_x86_64.whl size=44625 sha256=5f5434e3581777ee06e5931d449b08428cb078de5508d2f374db026899121f07
Stored in directory: /Users/afoot/Library/Caches/pip/wheels/13/90/db/290ab3a34f2ef0b5a0f89235dc2d40fea83e77de84ed2dc05c
Successfully built ansible ansible-base PyYAML
Installing collected packages: MarkupSafe, jinja2, PyYAML, pycparser, cffi, six, cryptography, pyparsing, packaging, ansible-base, ansible
Successfully installed MarkupSafe-1.1.1 PyYAML-5.3.1 ansible-2.10.3 ansible-base-2.10.3 cffi-1.14.3 cryptography-3.2.1 jinja2-2.11.2 packaging-20.4 pycparser-2.20 pyparsing-2.4.7 six-1.15.0
Verify the ansible module was installed
-> pip3 list
Package Version
------------ -------
ansible 2.10.3 <<<---HERE
ansible-base 2.10.3
cffi 1.14.3
cryptography 3.2.1
Jinja2 2.11.2
MarkupSafe 1.1.1
packaging 20.4
pip 20.1.1
pycparser 2.20
pyparsing 2.4.7
PyYAML 5.3.1
setuptools 49.2.0
six 1.15.0
wheel 0.34.2Last updated