python3.8无法用pip安装模块怎么办?
Tofloor
poster avatar
txs
deepin
2019-11-19 18:27
Author
安装了个python3.8,安装模块时发现我无法安装任何pip模块,报错如下:
```
root@txs-PC:/home/txs/Desktop# pip3.8 install frida
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting frida
  WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/frida/
  WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/frida/
  WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/frida/
  WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/frida/
  WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/frida/
  Could not fetch URL https://pypi.org/simple/frida/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/frida/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
  ERROR: Could not find a version that satisfies the requirement frida (from versions: none)
ERROR: No matching distribution found for frida
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


```

而我用deepin自带的python3.5,则没有任何问题。
但是我想尝尝新鲜的python3.8,怎么办哦

Reply Favorite View the author
All Replies
avatar
132******16
deepin
2019-11-19 18:41
#1
可以试试python虚拟环境,anaconda或者virtualenv等
Reply View the author
avatar
Feng Yu
deepin
2019-11-19 19:10
#2
你这是自己编译的python,而且没有编译ssl支持吧?早就说了不要自己编译。用anaconda/miniconda吧
Reply View the author
avatar
txs
deepin
2019-11-19 20:01
#3
https://bbs.deepin.org/post/185399
你这是自己编译的python,而且没有编译ssl支持吧?早就说了不要自己编译。用anaconda/miniconda吧 ...

啊是自己编的,会有问题吗
Reply View the author
avatar
txs
deepin
2019-11-19 20:01
#4
https://bbs.deepin.org/post/185399
可以试试python虚拟环境,anaconda或者virtualenv等

虚拟环境也有问题
Reply View the author
avatar
Feng Yu
deepin
2019-11-19 23:17
#5
https://bbs.deepin.org/post/185399
啊是自己编的,会有问题吗

新手极不建议自己编译,你看你编译出来的不就缺胳膊少腿了?建议直接用现成的软件包,不用自己维护,出了问题也容易解决。Python开发环境推荐anaconda,你可以自己去官网看看这玩意怎么用,我现在Python环境就用conda管理,简直不要太爽
Reply View the author