无法在linux中安装python3.3请求

2024-10-02 10:18:41 发布

您现在位置:Python中文网/ 问答频道 /正文

sudo -u <username>/lm/tools/extern/python/libs/lmdata33-env/bin/pip-3.3 install requests
Downloading/unpacking requests
  Cannot fetch index base URL http://pypi.python.org/simple/
  Could not find any downloads that satisfy the requirement requests
No distributions at all found for requests
Storing complete log in /home/lmbuild1/.pip/pip.log

其他信息:无法获取URLhttp://pypi.python.org/simple/pip:HTTP错误403:需要SSL


Tags: piporgenvpypilogbinsudousername
1条回答
网友
1楼 · 发布于 2024-10-02 10:18:41

您使用的是旧版本的pip,它试图通过纯HTTP连接到PyPI。这是不安全的,而且一直都是不安全的,因此PyPI started disallowing plain HTTP requests a week ago。你需要升级你的pip版本来修复这个问题。如果您的操作系统的包管理器没有提供更新版本的pip,那么您可以按照these instructions来下载https://bootstrap.pypa.io/get-pip.py并运行python get-pip.py。你知道吗

相关问题 更多 >

    热门问题