ImportError:没有名为svmcmp的模块

2024-04-18 00:20:40 发布

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

我在研究支持向量机,发现了一个有趣的例子here。我已经安装了cvxopt,但是svmcmpl没有一起安装cvxopt,我没有找到如何安装它。在这个页面中,有chompack,但我也安装了它。在

>>> import cvxopt
>>> import chompack
>>> import svmcmpl
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named 'svmcmpl'

如果我尝试使用名称svmcmpl通过pip安装,我得到:

^{pr2}$

日志:

$ cat /home/ademar/.pip/pip.log
------------------------------------------------------------
/usr/bin/pip run on Sun Dec 20 18:54:44 2015
Downloading/unpacking svmcmpl
  Getting page https://pypi.python.org/simple/svmcmpl/
  Could not fetch URL https://pypi.python.org/simple/svmcmpl/: 404 Client Error: Not Found
  Will skip URL https://pypi.python.org/simple/svmcmpl/ when looking for download links for svmcmpl
  Getting page https://pypi.python.org/simple/
  URLs to search for versions for svmcmpl:
  * https://pypi.python.org/simple/svmcmpl/
  Getting page https://pypi.python.org/simple/svmcmpl/
  Could not fetch URL https://pypi.python.org/simple/svmcmpl/: 404 Client Error: Not Found
  Will skip URL https://pypi.python.org/simple/svmcmpl/ when looking for download links for svmcmpl
  Could not find any downloads that satisfy the requirement svmcmpl
Cleaning up...
  Removing temporary dir /tmp/pip_build_root...
No distributions at all found for svmcmpl
Exception information:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 278, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1178, in prepare_files
    url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
  File "/usr/lib/python2.7/dist-packages/pip/index.py", line 277, in find_requirement
    raise DistributionNotFound('No distributions at all found for %s' % req)
DistributionNotFound: No distributions at all found for svmcmpl

Tags: pipnoinhttpsorgpypiurlfor

热门问题