小编Tha*_*tas的帖子

无法使用 pip (ubuntu) [pip 配置了需要 TLS/SSL 的位置,但是 Python 中的 ssl 模块不可用。]

$ sudo pip install numpy    # or anything else
Run Code Online (Sandbox Code Playgroud)

错误:

The directory '/home/user/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. (tried sudo -H, the rest errors persist)  
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.    
Collecting numpy  
  Retrying (Retry(total=4, connect=None, read=None, …
Run Code Online (Sandbox Code Playgroud)

python3 pip

11
推荐指数
1
解决办法
4万
查看次数

标签 统计

pip ×1

python3 ×1