The most complete jetson in history uses jetpack4.6.1 to burn, configure and configure pytorch and tensorrt in the virtual environment (1)

Written in the front, please read carefully before deciding whether to read or not

jetpack4.6.1 is the best version of 4.x. Its configuration is as follows: TensorRT8.0.2 (the official website says 8.2 is wrong, but you can upgrade it yourself), cuda10.2, cudnn8.2.1. If you want If you use pytorch1.10 or below, please install jetpack4.6.1. If you need to use tensorRT8.5.2, please read another article of the blogger: jetpack5.1 configuration and error reporting.

1.1 System installation and programming

JetPack SDK 4.6.1 | NVIDIA developers download the sd card image file corresponding to your jetson model from this link, the blogger is jetson xavier nx so choose to download this:

After downloading, please follow this link to burn  (41 messages) Getting Started with NVIDIA Jetson Xavier NX (1) - Burning System Image_jeston xvaier img writing tool_Wenshanhu's cat blog-CSDN blog

After burning the system, we activate the system. If your sd card has already been written into another system and the drive letter cannot be displayed, please see this

(41 messages) After the sd card image is installed, the drive letter is not displayed under windows_I can't find the sd card installed image_My Stomach Blog-CSDN Blog

1.2 vnc viewer remote control

It is still very comfortable to be able to remotely control jetson on the computer. The copied code can be pasted directly in jetson. It is strongly recommended that you install one here. The normal version of vnc cannot transfer files. If you insist on using a network cable to transfer files, mobaxterm is recommended here. 

Please follow this link to configure remote control (41 messages) Jetson AGX Xavier configures VNC remote desktop connection and default resolution adjustment_jetson modify configuration file to change screen resolution_Shenlu S Blog-CSDN Blog

 Here you don’t need to set the password of the vnc link to facilitate the connection. Please don’t start the jetson when the computer is on the vpn!!!! You will not be able to find the ip (too many will be tears)

1.3 A possible error report:

There will be an error that cannot be updated because https is not safe.

E: The repository ‘https://repo.download.nvidia.com/jetson/common 20 r32.5 Release’ no longer has a Release file.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository ‘https://repo.download.nvidia.com/jetson/t210 11 r32.5 Release’ no longer has a Release file.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

The solution is given here: virtualbox - apt update: Could not handshake: An unexpected TLS packet was received - Ask Ubuntu

Just delete the s of https in the second line like this. 

1.4 System environment variable configuration

jetpack4.6.1 has only one built-in cuda which is 10.2, so:

#cuda
sudo vi ~/.bashrc
#添加
export PATH=/usr/local/cuda/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH
export CUDA_HOME=$CUDA_HOME:/usr/local/cuda
#保存并刷新
source ~/.bashrc

Regarding whether to change the source here, my suggestion is not to change it. You know what to do if you encounter timeout or particularly slow situations = _=

If Yuan can't run to me, I will run to Yuan!

1.5 install pycharm

Since the virtual environment will be used later, and I think the virtual environment of vsc is not as comfortable as pycharm, here is still installed pycharm

pycharm needs to install java environment

If you want to be stable, please refer to: (41 messages) Install Pycharm on Jetson Xavier NX_Suyuoa's Blog-CSDN Blog

The openjdk-8-jdk he installed cannot install the latest pycharm!

If you want to use the latest version, please refer to: (41 messages) Jetson AGX installs Pycharm_agx orin installs pycharm_Monster_fsk's Blog-CSDN Blog

But I don't recommend it very much, because the little performance of jetson runs the new pycharm card to death

The next article will talk about how to install the environment of miniforge and torch. There are many errors reported when installing jetson, but I can’t remember clearly. If there are any errors, please give them in the comments. I will try my best to answer

Guess you like

Origin blog.csdn.net/Yvon_L/article/details/130131111