【问题标题】:No matching distribution found找不到匹配的分布
【发布时间】:2018-12-16 18:14:12
【问题描述】:

我正在尝试为 libffi-dev 收集所有轮子文件。尝试下面提到的命令:

pip wheel --wheel-dir=setup libffi-dev

给予

收集 libffi-dev

  Could not find a version that satisfies the requirement libffi-dev (from versions: )
No matching distribution found for libffi-dev

提前致谢:)

【问题讨论】:

    标签: python shell ubuntu pip package


    【解决方案1】:

    libffi-dev 是 Ubuntu 软件包的名称。 cffi 来自 PyPI。您需要同时安装:

    sudo apt-get install libffi-dev
    pip install cffi
    

    【讨论】:

    • 看起来我的 /etc/apt/sources.list 没有指向互联网 :)
    【解决方案2】:

    如果您尝试安装 wordcloud 并遇到此问题。

    https://pypi.org/simple/wordcloud/ 下载与您正在使用的 Python 版本和操作系统对应的 .whl 文件。 (我已经下载了 wordcloud-1.5.0-cp37-cp37m-win_amd64.whl 用于 64 位窗口)。

    将文件放入C:\Users\<User>

    从命令提示符运行

    pip install --verbose --trusted-host files.pythonhosted.org wordcloud-1.5.0-cp37-cp37m-win_amd64.whl
    

    这对我有用。经过大量研究找到了这个解决方案。

    C:\Users\**<user>**>pip install --verbose --trusted-host files.pythonhosted.org wordcloud-1.5.0-cp37-cp37m-win_amd64.whl
    Config variable 'Py_DEBUG' is unset, Python ABI tag may be incorrect
    Config variable 'WITH_PYMALLOC' is unset, Python ABI tag may be incorrect
    pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
    Created temporary directory: C:\Users\<user>\AppData\Local\Temp\pip-ephem-wheel-cache-hqkva4rs
    Created temporary directory: C:\Users\<user>\AppData\Local\Temp\pip-req-tracker-0cimhb2c
    Created requirements tracker 'C:\\Users\\<user>\\AppData\\Local\\Temp\\pip-req-tracker-0cimhb2c'
    Created temporary directory: C:\Users\<user>\AppData\Local\Temp\pip-install-y5b3ck8i
    Config variable 'Py_DEBUG' is unset, Python ABI tag may be incorrect
    Config variable 'WITH_PYMALLOC' is unset, Python ABI tag may be incorrect
    Processing c:\users\<user>\wordcloud-1.5.0-cp37-cp37m-win_amd64.whl
      Added wordcloud==1.5.0 from file:///C:/Users/<user>/wordcloud-1.5.0-cp37-cp37m-win_amd64.whl to build tracker 'C:\\Users\\<user>\\AppData\\Local\\Temp\\pip-req-tracker-0cimhb2c'
      Removed wordcloud==1.5.0 from file:///C:/Users/<user>/wordcloud-1.5.0-cp37-cp37m-win_amd64.whl from build tracker 'C:\\Users\\<user>\\AppData\\Local\\Temp\\pip-req-tracker-0cimhb2c'
    Requirement already satisfied: pillow in c:\users\<user>\anaconda3\lib\site-packages (from wordcloud==1.5.0) (5.4.1)
    Requirement already satisfied: numpy>=1.6.1 in c:\users\<user>\anaconda3\lib\site-packages (from wordcloud==1.5.0) (1.15.1)
    Installing collected packages: wordcloud
    
    Successfully installed wordcloud-1.5.0
    Cleaning up...
    Removed build tracker 'C:\\Users\\<user>\\AppData\\Local\\Temp\\pip-req-tracker-0cimhb2c'
    

    【讨论】:

    • 将文件放在 C:\Users\ - 请注意此更正 Jomon
    猜你喜欢
    • 2017-08-16
    • 2020-09-19
    • 1970-01-01
    • 2020-10-07
    • 1970-01-01
    • 2020-04-11
    • 2021-10-19
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多