当前位置:网站首页>Jetson nano installs tensorflow GPU and problem solving
Jetson nano installs tensorflow GPU and problem solving
2022-07-01 08:50:00 【Turing.】
**
Jetson Nano install TensorFlow GPU And problem solving
**
1. install pip3 And change the source installation
nano Bring their own python3.6.9
sudo apt install python3-pip python3-dev
If you want to update after downloading pip3 Version of , Temporarily use Tsinghua source
python3 -m pip install --upgrade pip -i https://pypi.tuna.tsinghua.edu.cn/simple
2. Install dependencies and other learning packages
sudo apt install python3-scipy -y
sudo apt install python3-pandas -y
sudo apt install python3-sklearn -y
sudo apt install python3-seaborn -y
(1)nano Already brought cuda, Just in .bashrc Add the following to the file
export PATH=/usr/local/cuda/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH
The input terminal nvcc -V View version .
Cuda compilation tools, release 10.2, V10.2.89
(2) Install various dependencies
sudo apt-get update
sudo apt install libhdf5-serial-dev hdf5-tools libhdf5-dev zlib1g-dev zip libjpeg8-dev liblapack-dev libblas-dev gfortran
sudo pip3 install -U numpy==1.16.1 future==0.18.2 mock==3.0.5 h5py==2.10.0 keras_preprocessing==1.1.1 keras_applications==1.0.8 gast==0.2.2 futures protobuf pybind11
(3) install TensorFlow GPU edition
Method 1 :
Use pip3 install TensorFlow, This command will install and JetPack 4.4 Compatible TensorFlow Latest version ( Bloggers use this command to successfully install TensorFlow2.3.0, The installation process is long , Yours JetPack Version if 4.5 Will v44 Change it to v45 that will do ):
sudo pip3 install --pre --extra-index-url https://developer.download.nvidia.com/compute/redist/jp/v44 tensorflow
TensorFlow edition 2 It's recently released , And with TensorFlow 1.x Not fully backward compatible . If you want to use TensorFlow 1.x software package , You can do this by TensorFlow The version is specified as less than 2 To install it , As the following command shows :
sudo pip3 install --pre --extra-index-url https://developer.download.nvidia.com/compute/redist/jp/v44 'tensorflow<2'
Method 2 :
You can also go to the official website to select more versions to download :
Download the corresponding version of .whl File and then use pip Command installation, such as : Official website
pip3 install tensorflow-1.15.5+nv22.3-cp38-cp38-linux_aarch64.whl
Method 3 :
Refer to the installation method given on the official website https://docs.nvidia.com/deeplearning/frameworks/install-tf-jetson-platform/index.html
3. test
One time input of terminal
python3
import tensorflow as tf
# Output hint :
tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudart.so.10.2
a = tf.constant(1.)
b = tf.constant(2.)
print(a+b)
# Output results :
# tf.Tensor(3.0, shape=(), dtype=float32)
print('GPU:', tf.test.is_gpu_available())
# Output the last sentence as :
# GPU: True
4. Problems and Solutions
(1)python Version low
If you encounter this problem, use the above method 2 to install , And will download .whl Two places in the file protobuf>=3.6.1 Change it to protobuf==3.6.1( You can also upgrade python, I think upgrading python A little bit difficult )
(2)
Execute this command
python3 -m pip install --upgrade --force pip
pip3 install setuptools==33.1.1
边栏推荐
- 【MFC开发(16)】树形控件Tree Control
- pcl_viewer命令
- Performance improvement 2-3 times! The second generation Kunlun core server of Baidu AI Cloud was launched
- Embedded Engineer Interview frequently asked questions
- 又到年中,固定资产管理该何去何从?
- Guidelines and principles of did
- LogBack
- Shell脚本-特殊变量:Shell $#、$*、[email protected]、$?、$$
- Shell script -for loop and for int loop
- Nacos - 服务发现
猜你喜欢
Performance improvement 2-3 times! The second generation Kunlun core server of Baidu AI Cloud was launched
《微机原理》-绪论
Public network cluster intercom +gps visual tracking | help the logistics industry with intelligent management and scheduling
Nacos - 服务发现
如何做好固定资产管理?易点易动提供智能化方案
电脑小技巧
Memory size end
Ape anthropology topic 20 (the topic will be updated from time to time)
Glitch Free时钟切换技术
VSYNC+三重缓存机制+Choreographer
随机推荐
In depth learning training sample amplification and tag name modification
猿人学第20题(题目会不定时更新)
win7 pyinstaller打包exe 后报错 DLL load failed while importing _socket:参数错误
任务、线程、进程 区别
3. Detailed explanation of Modbus communication protocol
19Mn6 German standard pressure vessel steel plate 19Mn6 Wugang fixed binding 19Mn6 chemical composition
I would like to know the process of stock registration and account opening by mobile phone? In addition, is it safe to open a mobile account?
电视机尺寸与观看距离
【MFC开发(17)】高级列表控件List Control
What is the material of 16mo3 steel plate? What is the difference between 16mo3 and Q345R?
爬虫知识点总结
Share 7 books I read in the first half of 2022
Computer tips
VSYNC+三重缓存机制+Choreographer
Redis——Lettuce连接redis集群
足球篮球体育比赛比分直播平台源码/app开发建设项目
《单片机原理及应用》—定时器、串行通信和中断系统
FreeRTOS学习简易笔记
Jetson Nano 安装TensorFlow GPU及问题解决
Shell脚本-case in语句