无法在Python中安装fancyimpute(适用于Windows 10)

时间:2018-06-07 17:16:18

标签: python

我正在运行Python 3.6.5 :: Anaconda自定义(64位)并在尝试pip install fancyimpute时出现以下错误

Exception:
Traceback (most recent call last):
  File "C:\Users\User\Anaconda3\lib\site-packages\pip\_internal\basecommand.py", line 228, in main
    status = self.run(options, args)
  File "C:\Users\User\Anaconda3\lib\site-packages\pip\_internal\commands\install.py", line 291, in run
    resolver.resolve(requirement_set)
  File "C:\Users\User\Anaconda3\lib\site-packages\pip\_internal\resolve.py", line 103, in resolve
    self._resolve_one(requirement_set, req)
  File "C:\Users\User\Anaconda3\lib\site-packages\pip\_internal\resolve.py", line 262, in _resolve_one
    check_dist_requires_python(dist)
  File "C:\Users\User\Anaconda3\lib\site-packages\pip\_internal\utils\packaging.py", line 46, in check_dist_requires_python
    feed_parser.feed(metadata)
  File "C:\Users\User\Anaconda3\lib\email\feedparser.py", line 175, in feed
    self._input.push(data)
  File "C:\Users\User\Anaconda3\lib\email\feedparser.py", line 103, in push
    self._partial.write(data)
TypeError: string argument expected, got 'NoneType'

2 个答案:

答案 0 :(得分:1)

使用easy_install fancyimpute代替pip install fancyimpute解决了我的问题

答案 1 :(得分:0)

花了几个小时之后,这就是我所做的。我的最初错误是“错误:Microsoft Visual C ++ 14.0”。我安装了Microsoft Visual C ++ Buildtools,仍然出现错误。按照http://i-systems.github.io/HSE545/machine%20learning%20all/cvxpy_install/CVXPY%2BInstallation%2BGuide%2Bfor%2BWindows.html

进行了如下操作

  • 下载了所有最新的.whl文件。 https://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy。我继续 ** cp36‑cp36m‑win_amd64.whl文件
  • 将所有文件复制到Windows中的任何文件夹。
  • 以管理员身份运行cmd命令。确保没有正在运行的活动jupyter笔记本会话或python会话
  • 通过以下方式进行文件的pip安装 一。就我而言,我做了以下事情:

    pip install numpy-1.15.2+mkl-cp36-cp36m-win_amd64.whl
    pip install scipy-1.1.0-cp36-cp36m-win_amd64.whl
    pip install cvxopt-1.2.1-cp36-cp36m-win_amd64.whl
    pip install scs-2.0.2-cp36-cp36m-win_amd64.whl
    pip install ecos-2.0.5-cp36-cp36m-win_amd64.whl
    pip install CVXcanon-0.1.1-cp36-cp36m-win_amd64.whl
    pip install fastcache-1.0.2-cp36-cp36m-win_amd64.whl
    pip install cvxpy-1.0.9-cp36-cp36m-win_amd64.whl
    pip install fancyimpute-0.4.0-py3-none-any.whl
    

所有这些都在Windows10中成功安装了fancyimpute。