NX Xavier常用安装命令
#MQTTpip3 --default-timeout=100 install -i https://pypi.tuna.tsinghua.edu.cn/simple paho-mqtt#kafkasudo pip3 --default-timeout=100 install -i https://pypi.tuna.tsinghua.edu.cn/simple kafka-python#拼音su
#MQTT
pip3 --default-timeout=100 install -i https://pypi.tuna.tsinghua.edu.cn/simple paho-mqtt
#kafka
sudo pip3 --default-timeout=100 install -i https://pypi.tuna.tsinghua.edu.cn/simple kafka-python
#拼音
sudo apt install fcitx-bin
sudo apt install fcitx-table
sudo apt-get install fcitx fcitx-googlepinyin -y
运行完进入语言设置:设置为fcitx
无法展示候选框的解决办法:
在终端运行:
killall fcitx-qimpanel
若恢复正常即可运行:
sudo apt-get remove fcitx-ui-qimpanel
#dronekit
sudo apt-get install libxml2-dev libxslt-dev python-dev python3-dev
sudo python3 -m pip --default-timeout=100 install -i https://pypi.tuna.tsinghua.edu.cn/simple dronekit dronekit-sitl mavproxy
sudo pip3 uninstall pymavlink
sudo pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple pymavlink==2.4.8
#串口
sudo pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple pyserial
sudo pip install -i https://pypi.tuna.tsinghua.edu.cn/simple python-Levenshtein
sudo pip install -i https://pypi.tuna.tsinghua.edu.cn/simple werkzeug==0.15.4
sudo pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple python-vlc
sudo apt-get update
sudo apt-get install -y python-pip
sudo apt-get install -y python3-pip
sudo apt-get install -y libjpeg-dev zlib1g-dev libpcre3 libpcre3-dev libssl-dev
sudo apt-get install -y openmpi-bin
sudo apt-get install -y libopenblas-dev
sudo apt-get install -y freetype*
sudo apt-get install -y libfreetype6-dev
sudo apt install -y
libcanberra-gtk-module libcanberra-gtk3-module
sudo apt install -y ffmpeg
sudo apt-get install -y libhdf5-serial-dev hdf5-tools libhdf5-dev zlib1g-dev zip libjpeg8-dev liblapack-dev libblas-dev gfortran
sudo pip3 install -y -U pip testresources setuptools
sudo pip3 install -y -U numpy==1.16.1 future==0.17.1 mock==3.0.5 h5py==2.9.0 keras_preprocessing==1.0.5 keras_applications==1.0.8 gast==0.2.2 futures protobuf pybind11
sudo pip3 install -y -i https://pypi.tuna.tsinghua.edu.cn/simple scipy==1.4.1
sudo pip3 install -y --pre --extra-index-url https://developer.download.nvidia.com/compute/redist/jp/v44 tensorflow
sudo apt-get install -y build-essential libatlas-base-dev gfortran
sudo pip3 install -y keras
# sudo apt-get install -y nginx
# sudo apt install -y python3-tk
#sudo apt-get install -y libxml2-dev libxslt1-dev libffi-dev
# apt-get install -y python3-xxx
sudo pip install -i https://pypi.tuna.tsinghua.edu.cn/simple cython
sudo pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple matplotlib
sudo pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple h5py
sudo pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple scikit-image
sudo pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple dlib
sudo pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple face_recognition
sudo pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple websockets
sudo pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple websocket-client
sudo pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple virtualenv
sudo pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple python-Levenshtein
sudo pip3 install -y -i https://pypi.tuna.tsinghua.edu.cn/simple lxml tqdm absl-py matplotlib easydict pillow
sudo -H pip3 install -y jetson-stats
# sudo pip3 install -y -i https://pypi.tuna.tsinghua.edu.cn/simple pyyaml yacs tqdm colorama tensorboardX
# tar -xzvf scipy-1.4.1.tar.gz
# unzip numpy-1.15.0.zip
# cd scipy-1.4.1/
# sudo python3 setup.py install -y
# # rtst
# sudo apt install -y npm -y
# sudo npm install -y --global coffeescript
# # wifibroadcast
# sudo apt-get install -y libpcap-dev
# tar xf libsodium-1.0.10.tar.gz && cd libsodium-1.0.10
# ./configure && make -j4 && make install -y
# ldconfig
# python -m pip install --default-timeout=100 install -y future configparser pyroute2
# python -m pip --default-timeout=100 install -y -i https://pypi.tuna.tsinghua.edu.cn/simple pyroute2
###pip
sudo apt-get update
sudo apt-get install -y python-pip
sudo apt-get install -y python3-pip
————————————————————————————————————————
链接:https://zhuanlan.zhihu.com/p/52513112
1.首先安装cmkae
sudo apt install cmake
2.再安装依赖包
sudo apt install libgtk2.0-dev
sudo apt install pkg-config
sudo apt-get install -y \
build-essential \
cmake \
git \
gfortran \
libatlas-base-dev \
libavcodec-dev \
libavformat-dev \
libavresample-dev \
libcanberra-gtk3-module \
libdc1394-22-dev \
libeigen3-dev \
libglew-dev \
libgstreamer-plugins-base1.0-dev \
libgstreamer-plugins-good1.0-dev \
libgstreamer1.0-dev \
libgtk-3-dev \
libjpeg-dev \
libjpeg8-dev \
libjpeg-turbo8-dev \
liblapack-dev \
liblapacke-dev \
libopenblas-dev \
libpng-dev \
libpostproc-dev \
libswscale-dev \
libtbb-dev \
libtbb2 \
libtesseract-dev \
libtiff-dev \
libv4l-dev \
libxine2-dev \
libxvidcore-dev \
libx264-dev \
pkg-config \
qv4l2 \
v4l-utils \
v4l2ucp \
zlib1g-dev
3.到如下网站下载opencv 3.2.0
Releases - OpenCV library
opencv.org
4.下载后,解压:
unzip opencv-3.2.0.zip
cd opencv-3.2.0
5.建立build文件夹
mkdir build
cd build
6.开始编译:
cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local -D CUDA_ARCH_BIN=7.2 -D CUDA_ARCH_PTX= -D CUDA_FAST_MATH=ON -D CUDNN_VERSION='8.0' -D OPENCV_GENERATE_PKGCONFIG=ON -D WITH_CUBLAS=ON -D WITH_CUDA=ON -D WITH_CUDNN=ON -D WITH_GSTREAMER=ON -D WITH_LIBV4L=ON -D WITH_OPENGL=ON ..
sudo make -j8
sudo make install
7.添加库路径:
sudo vim /etc/ld.so.conf.d/opencv.conf
opencv.conf的内容:
/usr/local/lib
8.添加环境变量:
sudo vim ~/.profile
.profile最后一行添加:
PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig
export PKG_CONFIG_PATH
————————————————————————————————————————
更多推荐
所有评论(0)