ubuntu下需要手动编译opencv及扩展包
有大佬已经弄成sh,直接一健运行即可,他的sh支持Jetson AGX Xavier and Jetson Nano和tx2,
附个地址:https://github.com/yqlbu/jetson-packages-family#pycharm
装完之后需要手动将cv2放到envs的python3.6下面,
cv2编译好在/usr/local/lib/python3.6/site-packages/cv2/python-3.6,就是因为一开始没找到,我编译了好几遍,
然后进入虚拟环境的site-packages下面,
执行
ln -s /usr/local/lib/python3.6/site-packages/cv2/python-3.6/cv2.so cv2.so
这样就好了
我安装了conda,参考的是 https://zhangkaifang.blog.csdn.net/article/details/106710163
opencv编译参考 :https://www.cnblogs.com/ikic/p/12601450.html