r3ptilbot Posted September 2, 2019 Posted September 2, 2019 I need to install pyinstaller for Python 2.7 but it is not working. It worked for Python 3.4, but in this case I need it for python 2.7. C:\Python27\Scripts>pip install pyinstaller Collecting pyinstaller c:\python27\lib\site-packages\pip\_vendor\urllib3\util\ssl_.py:369: SNIMissingWarning: An HTTPS request has been made, but the SNI (Server Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. 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 SNIMissingWarning c:\python27\lib\site-packages\pip\_vendor\urllib3\util\ssl_.py:160: 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 Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '_ssl.c:499: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version'),)': /simple/pyinstaller/ Could not fetch URL https://pypi.org/simple/pyinstaller/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pyinstaller/ (Caused by SSLError(SSLError(1, '_ssl.c:499: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version'),)) - skipping Could not find a version that satisfies the requirement pyinstaller (from versions: ) No matching distribution found for pyinstaller I keep on getting this error. It goes away when I use Python 3.7 but I want to use it for python 2.7. I cannot install anything with pip without getting this error. Does anyone know another way to get pyinstaller for python 2.7 or how I should fix pip?
Cap_Sig Posted September 3, 2019 Posted September 3, 2019 Try this command with your package name: pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org <any package name>
r3ptilbot Posted September 3, 2019 Author Posted September 3, 2019 1 minute ago, Cap_Sig said: Try this command with your package name: pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org <any package name> Thanks for the advice. I was able to get pyinstaller installed by upgrading python27. It looks like it is working for now.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.