1. 程式人生 > >cenos 安裝 keras安裝

cenos 安裝 keras安裝

https://github.com/fchollet/keras

tensorflow 偶然出錯

 source activate tensorflow
(tensorflow) 
[email protected]:~                                                                       
▶ python
Python 2.7.12 |Anaconda 4.2.0 (64-bit)| (default, Jul  2 2016, 17:42:40) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org
>>> import tensorflow
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named tensorflow
>>> 

source ../etc/profile  

▶ source activate tensorflow

python

import tensorflow

import keras

>>> import tensorflow
>>> import theano
>>> import keras

[email protected]:~                                                                      ⍉
▶ source deactivate         


[email protected]:~                                                                       
▶ source ../etc/profile


[email protected]:~                                                                       
▶ source activate tensorflow
(tensorflow) 
[email protected]:~                                                                       
▶ python
Python 2.7.12 |Continuum Analytics, Inc.| (default, Jul  2 2016, 17:42:40) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org
>>> import tensorflow