python pip: no distributions at all found for an e

2020-02-13 07:30发布

I am trying to install the ScientificPython package into a newly installed distribution of Python on a Fedora 14 x64 system. Pip finds ScientificPython in the repository but does not want to install it

[bin]$ sudo ./python2.7 ./pip search ScientificPython
ScientificPython          - Various Python modules for scientific computing

[bin]$ sudo ./python2.7 ./pip install ScientificPython
Downloading/unpacking ScientificPython
  Could not find any downloads that satisfy the requirement ScientificPython
No distributions at all found for ScientificPython
Storing complete log in /tmp/tmpDLdmjy

Why could this happen?

Thanks!

标签: python pip
3条回答
老娘就宠你
2楼-- · 2020-02-13 08:02

The package name is actually scipy, not ScientificPython

Try:

pip install scipy
查看更多
别忘想泡老子
3楼-- · 2020-02-13 08:10

Have a look at the ScientificPython entry on pypi and you will find that it only contains a link to their project page, no downloadable package or egg (which pip would need to install from). That's why pip told you Could not find any downloads. You will have to install by hand following their instructions.

Bottom line: if pip search lists a given package that doesn't necessarily mean you can pip install it (in most cases you fortunately can).

查看更多
Anthone
4楼-- · 2020-02-13 08:17

This may due to the unverified files in the installation package . try with the --allow-unverified

pip install package_name==version --allow-unverified package_name

example pip install django-ajax-filtered-fields==0.5 --allow-unverified django-ajax-filtered-fields

查看更多
登录 后发表回答