查看ubuntu信息 lsb_release -a
安装pip
sudo apt-get install python-pip(如果不成功就:python3-pip)
更新:
sudo apt-get update
sudo apt-get upgrade gcc
sudo apt-get install python2.7-dev
安装依赖
sudo apt-get install libblas-dev liblapack-dev libatlas-base-dev gfortran
sudo pip install numpy scipy Theano
(https://www.zhihu.com/question/263401021)
sudo apt-get install git
git clone https://github.com/aigamedev/scikit-neuralnetwork.git
cd scikit-neuralnetwork; python setup.py develop
ValueError: compiledir '/home/lcr/.theano/compiledir_Linux-4.13--generic-x86_64-with-Ubuntu-16.04-xenial-x86_64-2.7.12-64' exists but you don't have read, write or listing permissions.
solution: https://blog.csdn.net/u010279699/article/details/73252648
sudo pip install -e git+https://github.com/lisa-lab/pylearn2.git#egg=Package
when nosetests -v sknn.tests,there are problems occured
ImportError (No module named pandas)
AttributeError: 'module' object has no attribute 'batch_norm'
AttributeError: 'module' object has no attribute 'Upscale2DLayer'
solution: 1.sodu pip install pandas
2.https://github.com/aigamedev/scikit-neuralnetwork/issues/224
ImportError: No module named _tkinter, please install the python-tk package
solution:sudo apt-get install python-tk
python examples/bench_mnist.py sknn IOError
https://docs.scipy.org/doc/scipy/reference/generated/scipy.io.loadmat.html
https://github.com/apache/incubator-mxnet/issues/2567
http://docs.h5py.org/en/latest/build.html
最终是权限问题,而要sodu到本地,再运行python examples/bench_mnist.py sknn
bazel
问题
ERROR: /root/.cache/bazel/_bazel_root/437f18cbcaf73db276fec704ed858693/external/protobuf_archive/BUILD:645:1: C++ compilation of rule '@protobuf_archive//:python/google/protobuf/internal/_api_implementation.so' failed (Exit 1)
external/protobuf_archive/python/google/protobuf/internal/api_implementation.cc:31:20: fatal error: Python.h: No such file or directory
compilation terminated.
答案
sudo apt-get install python3-dev