1
0
mirror of https://github.com/vmware/vsphere-automation-sdk-python.git synced 2024-11-21 17:29:59 -05:00

Merge pull request #165 from anusha94/master

updating new installation instructions
This commit is contained in:
Tianhao He 2019-06-21 14:05:26 +08:00 committed by GitHub
commit 6353848426
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,28 +43,11 @@ A Python virtual environment is also highly recommended.
### Installing Required Python Packages
See example below for specifying the --extra-index-url parameter.
Be sure to upgrade to the latest pip and setuptools.
```cmd
git clone https://github.com/vmware/vsphere-automation-sdk-python.git
cd vsphere-automation-sdk-python
pip install --upgrade -r requirements.txt --extra-index-url file:///<absolute_path_to_sdk>/lib
```
Example pip install command on Mac OSX.
*NOTE*: Be sure to change username "strefethen" to your username:
```cmd
pip install --upgrade -r requirements.txt --extra-index-url file:///Users/strefethen/github/vsphere-automation-sdk-python/lib
or
pip install --upgrade -r requirements.txt --extra-index-url file://$PWD/lib
```
Example pip install command on Windows.
```cmd
pip install --upgrade -r requirements.txt --extra-index-url file:\\\C:\Users\strefethen\github\vsphere-automation-sdk-python\lib
pip install --upgrade pip setuptools
pip install --upgrade git+https://github.com/vmware/vsphere-automation-sdk-python.git
```
**NOTE:** The SDK also requires OpenSSL 1.0.1+ if you want to connect to vSphere 6.5+ in order to support TLS1.1 & 1.2