如何安装ubuntu下pycaffe的依赖
1个回答
展开全部
1. 安装numpy相对简单,以下命令可以完成
apt-get install python-numpy
apt-get install python-scipy
2. 安装matplotlib相对复杂一些
需要先安装其依赖的包libpng和freetype
安装libpng:
sudo apt-get install libpng-dev
安装freetype:
[python] view plain copy
<pre name="code" class="python"> mkdir ~/Downloads
cd ~/Downloads wget
http://download.savannah.gnu.org/releases/freetype/freetype-2.4.10.tar.gz
tar zxvf freetype-2.4.10.tar.gz cd freetype-2.4.10/
###############./congfigure make sudo make install
3. 安装pip,然后通过pip来安装matplotlib: sudo
apt-get install python-pip安装好pip后就可以用下面的命令来查找matplotlib和查看其安装状态sudo pip
search matplotlib安装matplotlibsudo pip install matplotlib
4. 安装Cython 等
[python] view plain copy
sudo pip install Cython
sudo pip install Cython
sudo pip install Cython
sudo pip install Cython
sudo pip install Cython
sudo pip install Cython
sudo pip install Cython
apt-get install python-numpy
apt-get install python-scipy
2. 安装matplotlib相对复杂一些
需要先安装其依赖的包libpng和freetype
安装libpng:
sudo apt-get install libpng-dev
安装freetype:
[python] view plain copy
<pre name="code" class="python"> mkdir ~/Downloads
cd ~/Downloads wget
http://download.savannah.gnu.org/releases/freetype/freetype-2.4.10.tar.gz
tar zxvf freetype-2.4.10.tar.gz cd freetype-2.4.10/
###############./congfigure make sudo make install
3. 安装pip,然后通过pip来安装matplotlib: sudo
apt-get install python-pip安装好pip后就可以用下面的命令来查找matplotlib和查看其安装状态sudo pip
search matplotlib安装matplotlibsudo pip install matplotlib
4. 安装Cython 等
[python] view plain copy
sudo pip install Cython
sudo pip install Cython
sudo pip install Cython
sudo pip install Cython
sudo pip install Cython
sudo pip install Cython
sudo pip install Cython
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |