Skip to content

mcodare709/jetson-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ Jetson Orin Nano β€” Dev Environment Setup

🌐 繁體中文

An interactive Bash script for setting up a full deep learning stack on Jetson Orin Nano.

  • Target: JetPack 6.2 / L4T R36.4.x / R36.5.x
  • Python: 3.10 (Miniconda, conda env)

πŸ“‹ Requirements

Item Requirement
JetPack 6.2 (L4T R36.4.x / R36.5.x)
Swap β‰₯ 8 GB (required for OpenCV CUDA build)
Free disk β‰₯ 20 GB

πŸ“¦ Wheel Files

Download the following .whl files from Jetson AI Lab and place them in ~/packages/jetson_wheels/.

Or download directly from Google Drive: πŸ“ Jetson Wheels

  • PyTorch
  • Torchvision
  • ONNX Runtime GPU
  • CUDA Python
  • CuPy (CUDA 12x)

cv2 and tensorrt do not need to be downloaded. The script automatically creates symlinks from the system path.


πŸš€ Quick Start

chmod +x jetson_setup.sh

# Optional: set a custom conda env name (default: tools)
export CONDA_ENV=tools

bash jetson_setup.sh

πŸ›  Menu

p) πŸ” Preflight check  (wheels / swap / disk)
1) πŸ”§ System base      (snap fix + Chinese input)
2) πŸ”„ System update    (apt update + jtop fix)
3) πŸ“· OpenCV CUDA      (full rebuild, ~2hr)
4) 🐍 Conda env        (create env + symlinks)
5) πŸ“¦ Package install  (wheels + pip)
v) βœ… Validate         (check packages + GPU)
a) ⚑ Run all          (p β†’ 1 β†’ 2 β†’ 3 β†’ 4 β†’ 5 β†’ v)
q) πŸ‘‹ Quit

Recommended for a fresh device: run p first to verify the environment, then a for full install.


βš™οΈ Configuration

Variable Default Description
CONDA_ENV tools Conda environment name
PACKAGES_DIR ~/packages/jetson_wheels Wheel directory
OPENCV_SCRIPT_SHA256 (empty) SHA256 of the OpenCV build script

πŸ› Troubleshooting

cv2 has no CUDA support

python -c "import cv2; print(cv2.__file__)"
# Should point to /usr/lib/python3.10/dist-packages/cv2/...
# If not, re-run step 4

tensorrt import fails

export LD_LIBRARY_PATH=/usr/lib/aarch64-linux-gnu:$LD_LIBRARY_PATH

Releases

Packages

Contributors

Languages