Can I use it the same way as if I had installed it by simply moving the opencv folder?

Asked 2 years ago, Updated 2 years ago, 62 views

I would like to create a system using OpenCV 2.4.9 on Raspberry Pi 3 Model B, but can I use it the same way by copying and moving OpenCV folders that are already installed on another Raspberry Pi instead of using LXterminal?

opencv raspberry-pi

2022-09-30 18:52

1 Answers

pip install is not recommended to copy and use, as some settings may be changed depending on the environment.

Basically, it is better to keep track of the packages required in requirements.txt.If not, you can create requirements.txt with the following command:

 pip freeze>requirements.txt

You can then install packages in bulk using requirements.txt.

 pip install-r requirements.txt

If you have a package that is not Wheeled and you do not want to create a compilation environment on the machine you want to install, you can create a Wheel version on another machine in the same OS.In that case, do the following in the folder where setup.py is located in the source of the package:

 python setup.py bdist_wheel


2022-09-30 18:52

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.