PyCluster 无法安装包
PyCluster unable to install package
这是我在尝试安装 PyCluster 时遇到的错误。我在 spyder IDE 和 windows.
上使用 python 2.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
请提出解决方法。谢谢
here is 没有可供下载的源代码或二进制文件。
具有相似名称的模块 (pyclustering)。
Python 包索引 (PYPI) 是 Python 编程语言的软件存储库。
可以手动或使用 pip install
下载软件包
也可以上传二进制包和源码包。
例如 this 包有一个 源代码 和一些二进制文件
Python Wheels 和 Python Eggs 易于安装,主要用于 windows.
但是可以使用直接从 PYPI
下载的 MS Windows 安装程序 文件来完成手动安装
安装此 Pycluster
包时遇到类似情况
pip
正在尝试构建软件包,因为没有官方轮子
Python 3.5 & windows.
从这里下载一个非官方的 wheel 解决了这个问题:
https://www.lfd.uci.edu/~gohlke/pythonlibs/#pycluster
本站有很多wheel文件
尝试不同的版本,看看哪个最适合您。
您可以使用 Anaconda Prompt
和以下代码
以这种方式安装 .whl 文件
pip install Pycluster-1.56-cp36-cp36m-win_amd64.whl
使用 pip 安装:
pip3 install pyclustering
它甚至可以与 Anaconda 提示一起使用
这是我在尝试安装 PyCluster 时遇到的错误。我在 spyder IDE 和 windows.
上使用 python 2.7 和 anacondaDownloading/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
请提出解决方法。谢谢
here is 没有可供下载的源代码或二进制文件。
具有相似名称的模块 (pyclustering)。
Python 包索引 (PYPI) 是 Python 编程语言的软件存储库。
可以手动或使用 pip install
也可以上传二进制包和源码包。
例如 this 包有一个 源代码 和一些二进制文件
Python Wheels 和 Python Eggs 易于安装,主要用于 windows.
但是可以使用直接从 PYPI
下载的 MS Windows 安装程序 文件来完成手动安装安装此 Pycluster
包时遇到类似情况
pip
正在尝试构建软件包,因为没有官方轮子
Python 3.5 & windows.
从这里下载一个非官方的 wheel 解决了这个问题:
https://www.lfd.uci.edu/~gohlke/pythonlibs/#pycluster
本站有很多wheel文件
尝试不同的版本,看看哪个最适合您。
您可以使用 Anaconda Prompt
和以下代码
pip install Pycluster-1.56-cp36-cp36m-win_amd64.whl
使用 pip 安装:
pip3 install pyclustering
它甚至可以与 Anaconda 提示一起使用