◦ From the command line, run the following command to download the library and install it into the
Python environment:
pip install pyvmomi
.
◦ Verify that the library is installed correctly by using the following command:
pip list
pyvmomi
.
https://github.com/vmware/pyvmomi
.
• For an offline environment, follow these steps:
◦ Download the following seven libraries in an online environment:
– six 1.11.0 (
https://pypi.python.org/pypi/six/1.11.0
)
https://pypi.python.org/pypi/urllib3/1.22
)
https://pypi.python.org/pypi/certifi/2017.11.5
https://pypi.python.org/pypi/idna/2.6
– chardet 3.0.4 (
https://pypi.python.org/pypi/chardet/3.0.4
https://pypi.python.org/pypi/requests/2.18.4
)
– pyvmomi 6.5.0.2017.5.post1 (
https://pypi.python.org/pypi/pyvmomi/6.5.0.2017.5-1
◦ For each library, decompress the downloaded file and run following command:
python
setup.py install
.
For more detailed information about installing the Python library, go to
Python and the Python Library are now installed on Automation Director.
Installing Python and Python Library (Linux OS)
Procedure
1.
Install Python 3.5 on the same server as Automation Director.
• Download the gzipped source file from the following site:
https://www.python.org/downloads/
• Decompress the gzipped source file and run following commands:
164
Installing Python and Python Library (Linux OS)