Install Python Libraries with Trusted host

Install Python Libraries with Trusted host

Library Installation

In python sometime python library installation does’t work due to security policies or proxies. The solution to make sure to give trusted host during installation of a library on command prompt. This command is tested on Anaconda 3:

Install command to import cx_Oracle

python -m pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org cx_Oracle

Update command for cx_Oracle

python -m pip install --upgrade --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org cx_Oracle

Next: Check and connect with MySQL Database using Python

Leave a Reply

Your email address will not be published.