成功解決pycharm 的setting中的Error occurred when installing package 'Keras'
剛剛開始學習python在安裝package上碰了不上壁。
ModuleNotFoundError: No module named 'keras'
使用pycharm-->setting-->project Interpreter直接安裝失敗,如下圖所示
在嘗試了用terminal直接用命令pip install keras --user 以及pip install kerashttp://pypi.douban.com/simple/安裝失敗后,嘗試通過下載第三方庫,再通過路徑導入的方法。
解決方法:
1、 在國內的鏡像網站下載pip
國內源:
清華:https://pypi.tuna.tsinghua.edu.cn/simple
阿里雲:http://mirrors.aliyun.com/pypi/simple/
中國科技大學 https://pypi.mirrors.ustc.edu.cn/simple/
華中理工大學:http://pypi.hustunique.com/
山東理工大學:http://pypi.sdutlinux.org/
豆瓣:http://pypi.douban.com/simple/
2、setting-->project Interpreter-->show all-->如下圖