PyCluster无法安装packag

2024-05-18 10:18:11 发布

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

这是我在尝试安装PyCluster时遇到的错误。我在spyder IDE和windows上使用Python2.7和anaconda。在

Downloading/unpacking PyCluster

Getting page http://pypi.python.org/simple/PyCluster
URLs to search for versions for PyCluster:
* httpss://pypi.python.org/simple/PyCluster/
Getting page httpss://pypi.python.org/simple/PyCluster/
Analyzing links from page httpss://pypi.python.org/simple/pycluster/
Could not find any downloads that satisfy the requirement PyCluster

No distributions at all found for PyCluster

Exception information:
Traceback (most recent call last):
  File "C:\Users\anankuma\AppData\Local\Continuum\Anaconda\lib\site-packages\pip-1.2.1-py2.7.egg\pip\basecommand.py", line 107, in main
    status = self.run(options, args)
  File "C:\Users\anankuma\AppData\Local\Continuum\Anaconda\lib\site-packages\pip-1.2.1-py2.7.egg\pip\commands\install.py", line 256, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "C:\Users\anankuma\AppData\Local\Continuum\Anaconda\lib\site-packages\pip-1.2.1-py2.7.egg\pip\req.py", line 1011, in prepare_files
    url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
  File "C:\Users\anankuma\AppData\Local\Continuum\Anaconda\lib\site-packages\pip-1.2.1-py2.7.egg\pip\index.py", line 157, in find_requirement
    raise DistributionNotFound('No distributions at all found for %s' % req)
DistributionNotFound: No distributions at all found for PyCluster

请提出解决办法。谢谢


Tags: piporgpypiforegglocalanacondarequirement
3条回答

here is该包没有可供下载的源或二进制文件。在

具有相似名称的模块(pyclustering)。在

Python包索引(PYPI)是Python编程语言的软件库。在

您可以手动或使用pip install下载软件包

你也可以上传二进制和源程序包。在

例如,this包有一个源文件和一些二进制文件

Python Wheel和Python Egg的安装非常容易,主要用于windows。在

但是,手动安装可以使用MS Windows installer直接从PYPI下载的文件来完成

在安装这个Pycluster包时遇到了类似的情况

pip试图生成包,因为没有正式的控制盘 对于Python 3.5和windows。在

通过从这里下载一个非官方的轮子解决了这个问题:

https://www.lfd.uci.edu/~gohlke/pythonlibs/#pycluster

这个网站上有很多轮子文件。在

尝试不同的版本,看看哪个最适合你。在

您可以使用Anaconda Prompt和以下代码以这种方式安装.whl文件

pip install Pycluster-1.56-cp36-cp36m-win_amd64.whl

使用pip安装: pip3 install pyclustering

它甚至可以和水蟒一起工作

相关问题 更多 >