sudo apt-get update sudo apt-get install -y build-essential Git libblas-dev libopencv-dev
git clone --recursive https://github.com/dmlc/mxnet cd mxnet make -j4
python
import mxnet
添加环境变量
sudo apt-get install python-setuptools python-numpy
cd Python
sudo python setup.py install
sudo gedit ~/.bashrc export PYTHONPATH=mxnet/python:$PYTHONPATH source ~/.bashrc
opencv
sudo apt install python-pip
pip install opencv-python
pip升级后Import Error:cannot import name main
sudo gedit /usr/bin/pip 修改成 from pip import __main__ if __name__ == '__main__': sys.exit(__main__._main())