1、下载JetPack3.3,但是要在Ubuntu16.04的电脑当做host
官网:https://developer.nvidia.com/embedded/jetpack
经验贴:https://blog.csdn.net/QLULIBIN/article/details/78629305
YouTube教程:https://www.youtube.com/watch?v=D7lkth34rgM
2、安转完JetPack以后,安转tensorflow-gpu
指导:https://docs.nvidia.com/deeplearning/dgx/pdf/Install-TensorFlow-For-Jetson-TX2.pdf
3、tx2 换源(arm 16.04源)
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial main multiverse restricted universe
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-backports main multiverse restricted universe
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-proposed main multiverse restricted universe
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-security main multiverse restricted universe
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-updates main multiverse restricted universe
deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial main multiverse restricted universe
deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-backports main multiverse restricted universe
deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-proposed main multiverse restricted universe
deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-security main multiverse restricted universe
deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-updates main multiverse restricted universe
4、安转python-pip3,安装后是(8.0版本)
sudo apt-get install python3-dev
sudo apt-get install python3-pip
5、更新pip3,一定要加上sudo,事后修改 /usr/bin/pip3
sudo pip3 install --upgrade pip
pip3 -V #测试版本
6、安转tensorflow-gpu,根据指导
sudo pip3 install --extra-index-url https://developer.download.nvidia.com/compute/redist/jp33 tensorflow-gpu
7、测试tensorflow
import tensorflow
8、进入tensorflow的学习
官网教程:https://www.tensorflow.org/tutorials/
外国大佬教程:https://pythonprogramming.net/introduction-deep-learning-python-tensorflow-keras/
9、想起了anaconda,但是官方说不能在TX2上安装anaconda,唯有只好利用virtualenv创建虚拟空间
$ sudo pip3 install -U virtualenv # system-wide install
$ virtualenv -p python3 venv_1 #最简单配置
$ virtualenv --system-site-packages -p python3 venv_1 #将原系统的pip安装的所有的包都创建在venv_1内
$ source venv_1/bin/activate # sh, bash, ksh, or zsh
image.png
10、不知道用什么编译器在tx2上使用,就想到了Jupyter,但必须先更新pip3
image.png- 重新再来一遍,必须对pip3进行升级,否则pip8.0安装的jupyter是很低的版本,根本没有notebook
$ sudo pip3 install --upgrade pip
然后修改pip3 的 main函数 /usr/bin/pip3
$ pip3 install pyzmq==17.0.0
$ pip3 install jupyter
$ jupyter-notebook
11、配置zsh(最好用的shell,主题:ys)
(1)sudo apt-get install zsh git(安装zsh和git)
(2)sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
(3)主题修改文件路径:sudo gedit ~/.zshrc
(4)查看系统shell:cat /etc/shells
(5)修改默认shell:chsh -s `which zsh`
网友评论