没啥好说的直接上问题和解决方案,在Linux安装库时如果出现下面的错误:
Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/opt/Python-3.6.0/lib/python3.6/site-packages/scipy'
Consider using the `--user` option or check the permissions.
解决办法:/opt/Python-3.6.0/bin/pip install --user keras
记得安装时要换成自己的python路径就可以了。
Collecting pyyaml (from keras)
Installing collected packages: scipy, pyyaml, keras
Successfully installed keras-2.2.4 pyyaml-5.1 scipy-1.2.1
完美解决。