我在anaconda中創建了一個新的env,在安裝spyder,tensorflow和theano后我試圖安裝keras但是我收到了一條錯誤訊息(見下文).現在我甚至無法打開spyder,因為它停止作業. Spyder只有在我再次卸載keras時才有效.
你知道會發生什么嗎?我在同一臺計算機上有另一個環境,它與安裝的相同軟體包完美配合.
(py36) C:\Users\LeicaMicroscope>conda install -c conda-forge keras
Solving environment: done
## Package Plan ##
environment location: C:\Users\LeicaMicroscope\Anaconda3\envs\py36
added / updated specs:
- keras
The following packages will be downloaded:
package | build
---------------------------|-----------------
certifi-2018.4.16 | py36_0 143 KB conda-forge
The following NEW packages will be INSTALLED:
keras: 2.1.6-py36_0 conda-forge
The following packages will be UPDATED:
ca-certificates: 2018.03.07-0 --> 2018.4.16-0 conda-fo
rge
certifi: 2018.4.16-py36_0 --> 2018.4.16-py36_0 conda-fo
rge
openssl: 1.0.2o-h8ea7d77_0 --> 1.0.2o-vc14_0 conda-fo
rge [vc14]
Proceed ([y]/n)? y
Downloading and Extracting Packages
certifi-2018.4.16 | 143 KB | ###################################### | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
(py36) C:\Users\LeicaMicroscope>set "KERAS_BACKEND="
(py36) C:\Users\LeicaMicroscope>python C:\Users\LeicaMicroscope\Anaconda3\envs\p
y36\etc\keras\load_config.py 1>temp.txt
(py36) C:\Users\LeicaMicroscope>set /p KERAS_BACKEND= 0<temp.txt
(py36) C:\Users\LeicaMicroscope>del temp.txt
(py36) C:\Users\LeicaMicroscope>python -c "import keras" 1>nul 2>&1
(py36) C:\Users\LeicaMicroscope>if errorlevel 1 (
ver 1>nul
set "KERAS_BACKEND=theano"
python -c "import keras" 1>nul 2>&1
)
uj5u.com熱心網友回復:
這可能聽起來很明顯,但你嘗試用pip安裝嗎?uj5u.com熱心網友回復:
樓主解決了嗎轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/6967.html
標籤:其他技術討論專區
