keras下载错误 - TypeError:sting参数预期,得到" Nonetype"

时间:2017-06-29 14:30:11

标签: python-3.x tensorflow anaconda keras theano

我已经尝试了几个星期才能让keras工作,但仍然没有取得成功。我通过Anaconda 4.3.0和spyder运行Python 3.5,我有一个64位处理器。

我的最新尝试涉及卸载所有内容,使用python 3.5重新安装Anaconda 4.3.0。然后我做了以下事情:

conda create --name neuralnets python=3.5
activate neuralnets
conda install theano
conda install mingw libpython
pip install tensoflow

所有这一切都很好。然后我做了#p; install install keras,"并得到以下内容:

Collecting keras
  Downloading Keras-2.0.5.tar.gz (216kB)
    100% |################################| 225kB 883kB/s
Collecting theano (from keras)
Requirement already satisfied: pyyaml in c:\users\dwpri\anaconda1\lib\site-packages (from keras)
Requirement already satisfied: six in c:\users\dwpri\anaconda1\lib\site-packages (from keras)
Requirement already satisfied: numpy>=1.9.1 in c:\users\dwpri\anaconda1\lib\site-packages (from theano->keras)
Requirement already satisfied: scipy>=0.14 in c:\users\dwpri\anaconda1\lib\site-packages (from theano->keras)
Exception:
Traceback (most recent call last):
  File "C:\Users\dwpri\Anaconda1\lib\site-packages\pip\basecommand.py", line 215, in main
    status = self.run(options, args)
  File "C:\Users\dwpri\Anaconda1\lib\site-packages\pip\commands\install.py", line 335, in run
    wb.build(autobuilding=True)
  File "C:\Users\dwpri\Anaconda1\lib\site-packages\pip\wheel.py", line 749, in build
    self.requirement_set.prepare_files(self.finder)
  File "C:\Users\dwpri\Anaconda1\lib\site-packages\pip\req\req_set.py", line 380, in prepare_files
    ignore_dependencies=self.ignore_dependencies))
  File "C:\Users\dwpri\Anaconda1\lib\site-packages\pip\req\req_set.py", line 666, in _prepare_file
    check_dist_requires_python(dist)
  File "C:\Users\dwpri\Anaconda1\lib\site-packages\pip\utils\packaging.py", line 48, in check_dist_requires_python
    feed_parser.feed(metadata)
  File "C:\Users\dwpri\Anaconda1\lib\email\feedparser.py", line 178, in feed
    self._input.push(data)
  File "C:\Users\dwpri\Anaconda1\lib\email\feedparser.py", line 104, in push
    self._partial.write(data)
TypeError: string argument expected, got 'NoneType'

请告知我能做些什么。我非常沮丧,真的可以使用这些帮助。谢谢。

0 个答案:

没有答案