ubuntu下安装theano

    xiaoxiao2025-04-14  7

    1、卸载numpy和scipy

    主要原因是这两个库都是theano依赖的,但是前面的安装可能不满足要求

    sudo apt-get remove python-numpy

    sudo apt-get remove python-scipy

    2、安装各种依赖包

    apt-get install gfortran apt-get install libopenblas-dev apt-get install liblapack-dev apt-get install libatlas-base-dev3、安装numpy与scipy

    sudo pip install numpy

    sudo pip install scipy

    4、安装其它库

    apt-get install python-dev apt-get install python-pip apt-get install python-nose apt-get install g++ apt-get install git 5、安装与测试theano

    pip install Theano python -c "import theano;theano.test()" 如果报错,可能是权限的问题,用sudo 打开python 即可

    转载请注明原文地址: https://ju.6miu.com/read-1298059.html
    最新回复(0)