1、nvidia搭建tensorflow环境
1)安装依赖库:
sudo apt-get install python3-pip libhdf5-serial-dev hdf5-tools
2)下载对应版本的.whl文件
Index of /compute/redist/jp/v44/tensorflow
其中:v44代表Jetson版本,可更改链接中的v44查询对应Jetson版本。
查询Jetson版本命令:
Jtop
3) cd到.whl文件路径,安装
pip install ***.whl
2、aarch64架构下安装anaconda
查看自己的硬件是不是aarch架构:
uname -a
安装anaconda
# 此方法安装的python版本为3.8
wget -c https://repo.anaconda.com/archive/Anaconda3-2021.05-Linux-aarch64.sh
bash Anaconda3-2021.05-Linux-aarch64.sh
# 此方法安装的python版本为3.7.10
wget https://github.com/Archiconda/build-tools/releases/download/0.2.3/Archiconda3-0.2.3-Linux-aarch64.sh
sudo sh Archiconda3-0.2.3-Linux-aarch64.sh
# 此方法安装的python版本为3.7.2
wget https://github.com/Archiconda/build-tools/releases/download/0.2.2/Archiconda3-0.2.2-Linux-aarch64.sh
3、conda创建虚拟环境报错
bdlf@bdlf-desktop:~$ conda create -n cubercnn python=3.7
Solving environment: failedCondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://conda.anaconda4aarch64/linux-aarch64/repodata.json>
Elapsed: -An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on you
SSLError(MaxRetryError('HTTPSConnectionPool(host=\'conda.anaconda.org\', p3): Max retries exceeded with url: /c4aarch64/linux-aarch64/repodata.json d by SSLError(SSLError("bad handshake: Error([(\'SSL routines\', \'ssl3_geer_certificate\', \'certificate verify failed\')])")))'))
解决方法:
conda config --set ssl_verify false
conda create -n cubercnn python=3.7
接下来就是漫长的等待啦~~