Ubuntu一些软件的安装命令

北慕城南 提交于 2020-08-06 07:43:51

sudo apt install xfce4-terminal

或者

sudo apt install mate-terminal

调整默认终端

sudo update-alternatives --config x-terminal-emulator


安装GCC9

sudo apt install software-properties-common
sudo add-apt-repository ppa:ubuntu-toolchain-r/test

sudo apt install gcc-9 g++-9


调整GCC版本:

sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 90 --slave /usr/bin/g++ g++ /usr/bin/g+±9
#若有其它版本将上一语句改为对应版本
sudo update-alternatives --config gcc


安装Python编译依赖

sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev wget

sudo apt build-dep python3

Python编译 解压Python源码包。在解压后Python文件夹内执行:

./configure

make -j4

sudo make altinstall

使用pypi 清华源:

pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

TensorFlow on Arm:

https://github.com/lhelontra/tensorflow-on-arm

TensorFlow on Arm部分依赖:

sudo apt-get install openjdk-8-jdk automake autoconf
sudo apt-get install gfortran libopenblas-base liblapack3 libatlas3-base libeigen3-dev
pip3 install -U --user keras_applications --no-deps
pip3 install -U --user keras_preprocessing --no-deps
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!