python中pip不可用_pip install ...不起作用:pip配置了需要TLS / SSL的位置,但是Python中的ssl模块不可用...

bd96500e110b49cbb3cd949968f18be7.png

I installed Anaconda3 (2019), Python 3.7, Windows 10 yesterday and now I can not run pip install .

When I run pip install , I get the following message: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.

When I tried to install ssl module I am getting the same error message:

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 "", line 1, in

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

It seems that pip does not work because the module ssl is not installed but how to install module ssl when pip is not working?

解决方案

It seems that your package is not suitable for python3, the syntax it writes is the syntax of python2. You need an ssl installation package for python3

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值