CenterOS 7安装pip

查看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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值