找不到匹配的分布

时间:2018-07-09 06:11:04

标签: python shell ubuntu pip package

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

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

预先感谢:)

2 个答案:

答案 0 :(得分:0)

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

sudo apt-get install libffi-dev
pip install cffi

答案 1 :(得分:0)

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

https://pypi.org/simple/wordcloud/下载适用于您使用的Python版本和操作系统的.whl文件。 (我已经下载了用于64位Windows的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

这对我有用。经过大量研究发现了该解决方案。

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'