【问题标题】:Pip3 cannot find/install modulesPip3 找不到/安装模块
【发布时间】:2019-07-16 18:49:32
【问题描述】:

我正在尝试使用 pip3 在 Python 中安装软件包。我肯定设法在其他系统上安装了这些包,所以我知道它们存在。但就好像我正在使用的 pip3 存储库不包含那样。包是搁置和操作系统。我得到的错误是:

    [root@host]# pip3 install shelve
Collecting shelve
  Could not find a version that satisfies the requirement shelve (from versions: )
No matching distribution found for shelve

如果这有什么不同的话,我正在使用 RHEL 7。

【问题讨论】:

    标签: python pip operating-system python-3.5 shelve


    【解决方案1】:

    The project 在 2011 年发布了一个版本,该版本没有可下载的文件。并非所有人都可以使用的项目。

    你的意思是shelve from the stdlib?无需安装,随时可用,只需导入即可。

    【讨论】:

      【解决方案2】:

      您还可以使用例如安装 tkinter 包:

      sudo apt-get install python-tk; if you have python installed
      

      或者你可以使用:

      sudo apt-get install python3-tk; if you have python3 installed
      

      【讨论】:

        猜你喜欢
        • 2018-05-11
        • 2017-07-07
        • 1970-01-01
        • 1970-01-01
        • 2021-01-21
        • 1970-01-01
        • 1970-01-01
        • 2021-08-29
        • 2021-05-31
        相关资源
        最近更新 更多