Reputation: 3372
I have problem with using pip in unix. If I download a package, there is no prolbem to install it by :
sudo python setup.py install
But if I would like to install it by
pip install "package"
I receive error:
Could not find a version that satisfies the requirement setuptools-scm (from versions: ) No matching distribution found for setuptools-scm /usr/local/lib/python2.7/dist-packages/pip-19.0.1-py2.7.egg/pip/vendor/urllib3/util/ssl.py:150: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings InsecurePlatformWarning Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLError(1, '_ssl.c:504: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version'),)) - skipping
Do you know where could be a problem please?
Upvotes: 0
Views: 2188
Reputation: 13
First, You try
sudo apt install python3-pip
Then, try:
pip3 install "package"
Upvotes: 0