标签:expec yaml python3.6 user tar.gz 1.9 aml roc str
PS C:\Users\GoFree> pip install keras --upgrade # 包更新语句 Collecting keras Downloading https://files.pythonhosted.org/packages/54/e8/eaff7a09349ae9bd40d3ebaf028b49f5e2392c771f294910f75bb608b241/Keras-2.1.6-py2.py3-none-any.whl (339kB) 100% |████████████████████████████████| 348kB 9.8kB/s Requirement not upgraded as not directly required: pyyaml in c:\users\gofree\anaconda3\lib\site-packages (from keras) (3.12) Requirement not upgraded as not directly required: scipy>=0.14 in c:\users\gofree\anaconda3\lib\site-packages (from keras) (1.1.0) Requirement not upgraded as not directly required: numpy>=1.9.1 in c:\users\gofree\anaconda3\lib\site-packages (from keras) (1.14.3) Requirement not upgraded as not directly required: h5py in c:\users\gofree\anaconda3\lib\site-packages (from keras) (2.7.1) Exception: Traceback (most recent call last): File "c:\users\gofree\anaconda3\lib\site-packages\pip\_internal\basecommand.py", line 228, in main status = self.run(options, args) File "c:\users\gofree\anaconda3\lib\site-packages\pip\_internal\commands\install.py", line 291, in run resolver.resolve(requirement_set) File "c:\users\gofree\anaconda3\lib\site-packages\pip\_internal\resolve.py", line 103, in resolve self._resolve_one(requirement_set, req) File "c:\users\gofree\anaconda3\lib\site-packages\pip\_internal\resolve.py", line 262, in _resolve_one check_dist_requires_python(dist) File "c:\users\gofree\anaconda3\lib\site-packages\pip\_internal\utils\packaging.py", line 46, in check_dist_requires_python feed_parser.feed(metadata) File "c:\users\gofree\anaconda3\lib\email\feedparser.py", line 175, in feed self._input.push(data) File "c:\users\gofree\anaconda3\lib\email\feedparser.py", line 103, in push self._partial.write(data) TypeError: string argument expected, got ‘NoneType‘ # 错误信息 PS C:\Users\GoFree>
python -m pip install -U --force-reinstall keras
PS C:\Users\GoFree> cd E:PS E:\> pip install .\Keras-2.1.6-py2.py3-none-any.whl
PS C:\Users\GoFree> cd E:\Keras-2.1.6
PS E:\Keras-2.1.6> python .\setup.py install
PS E:\Keras-2.1.6> conda install keras
Package plan for installation in environment C:\Users\GoFree\Anaconda3:
The following NEW packages will be INSTALLED:
backports.weakref: 1.0rc1-py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
keras: 2.1.6-py36_0 defaults
libprotobuf: 3.2.0-vc14_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
markdown: 2.6.9-py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
protobuf: 3.2.0-py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
tensorflow: 1.2.1-py36_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
Proceed ([y]/n)? y
PS E:\Keras-2.1.6>
PS E:\Keras-2.1.6> conda update keras # All requested packages already installed. # packages in environment at C:\Users\GoFree\Anaconda3: # keras 2.1.6 py36_0 defaults PS E:\Keras-2.1.6>
标签:expec yaml python3.6 user tar.gz 1.9 aml roc str
原文地址:https://www.cnblogs.com/lxr1995/p/9141529.html