Вчера я установил Anaconda3 (2019), Python 3.7, Windows 10 и теперь не могу запустить pip install <package>
.
Когда я запускаю pip install, я получаю следующее сообщение: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Когда я пытался установить модуль ssl, я получаю то же сообщение об ошибке:
D:\>pip install D:\ssl-1.16.tar.gz
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Processing d:\ssl-1.16.tar.gz
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Alienware\Anaconda3\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Alienware\\AppData\\Local\\Temp\\pip-req-build-fdke_oc7\\setup.py'"'"'; __file__='"'"'C:\\Users\\Alienware\\AppData\\Local\\Temp\\pip-req-build-fdke_oc7\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info
cwd: C:\Users\Alienware\AppData\Local\Temp\pip-req-build-fdke_oc7\
Complete output (6 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\Alienware\AppData\Local\Temp\pip-req-build-fdke_oc7\setup.py", line 33
print 'looking for', f
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print('looking for', f)?
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
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("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
Кажется, что pip не работает, потому что модуль ssl не установлен, но как установить модуль ssl, когда pip установленне работает?