Comments (3)
I have complied successfully with python3 by followed these steps:
-
Uninstall Python2 out of your Jetson
sudo apt purge -y python2.7-minimal -
Replace default Python2 by Python3(and pip also)
sudo ln -s /usr/bin/python3 /usr/bin/python
sudo ln -s /usr/bin/pip3 /usr/bin/pip -
Build opencv 4.4.0
sudo ./build_opencv.sh
I hope this help :)
from nano_build_opencv.
@MinhDung0803 @mdegans I did as you said and uninstalled python2 but then i run the script and observed that it again reinstalled python2 while ongoing process.
can you create separate scripts for python3 and python2 it might help a lot.
i am trying to install cv2 with your sctipt in jetpack 4.6 i think its installing version opencv 4.4 will update you the result i.e if successful or not and to clarify i am installing on jetson xavier nx .
thanks.
from nano_build_opencv.
The expected behavior is to build for both. I'll try to replicate when I get a chance.
These commands here...
sudo ln -s /usr/bin/python3 /usr/bin/python
sudo ln -s /usr/bin/pip3 /usr/bin/pip
...might break a lot of things on Linux for Tegra because /usr/bin/python
is usually python2 and apt needs to know when a python version changes. Try instead:
sudo update-alternatives --config python
To see what versions are available and switch. It will still likely break a lot of things, but hopefully fewer. Recent Ubuntu versions (and likely L4T) use python
instead of python3
, but only if you install a python-is-python3
package for it.
$ python
Command 'python' not found, did you mean:
command 'python3' from deb python3
command 'python' from deb python-is-python3
from nano_build_opencv.
Related Issues (20)
- this is support opencv in c++? HOT 1
- Build OpenCV with CUDA on Jetson AGX Xavier HOT 4
- Orin (Ubuntu 20.04) Missing v4l2ucp HOT 1
- Building OpenCV for Orin System HOT 2
- Script not working with Python 3.7.5 HOT 1
- Undefined reference to glXGetProcAddressARB() HOT 1
- Logging is preventing multiple jobs HOT 2
- Not an Issue but you saved my life. Thank you. Drop a star all. HOT 1
- In jtop still cuda support No HOT 3
- Unsupported gpu architecture 'compute_87' HOT 1
- Cannot generate make file - "Configuration Incomplete" HOT 2
- jetson nano errors to install it HOT 5
- Can not install it in docker HOT 1
- After install, opencv version displayed by 'jtop' and python script by 'cv2.getBuildInformation()' doesn't match. HOT 1
- fatal: unable to access 'https://github.com/opencv/opencv.git/': Failed to connect to github.com port 443: θΏζ₯θΆ ζΆ HOT 1
- Makefile:162: recipe for target 'all' failed
- Failed to build : Package 'libavresample-dev' has no installation candidate
- Trying to build into Docker Image - JetsonNX
- DO NOT USE IT, TOTALLY BREAKS SYSTEM
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nano_build_opencv.