It is very difficult to download from the official website, install it, and install dependent libraries each time, so use the pre-packaged one. This time, both ubuntu and windows use a distribution called Anaconda.
Go to DOWNLOAD FOR FREE and select the version of python you want to use for the corresponding OS. (This time, the purpose is to use python3, so choose 3.X.)
After downloading, install it.
Since windows is an installer format, run it, and if you take a positive option for everything, the installation will end.
ubuntu from the terminal
$bash Anaconda3-2.4.1-Linux-x86_64.sh
If you continue to take the affirmative option, the installation will end.
Once this is done, you can use python for the time being.
$ conda create -n environment name python = 3.5 anaconda
Enter the version of python you want to use in the python = part.
When using the created virtual environment
$ source activate environment name
(Do not write source
for windows)
~~ For windows ~~ Go to ~~ here, find and download the OpenCV whl file that matches your version. ~~ ~~ Open a command prompt, ~~ ~~ pip install Downloaded file ~~ Type ~~. ~~
~~ For ubuntu ~~
It seems that it has improved by typing the following.
Open a terminal and type in:
$conda install --channel https://conda.anaconda.org/menpo opencv3
The end
~~ If you install using this method, the cascade file (xxxxx.xml) used for face recognition will not be included. ~~ ~~ Please take measures such as searching on the Internet. ~~
It was in the following directory C:\Users[username]\Anaconda3\envs[envname]\Library\etc
I referred to some sites in writing this article. Thank you very much. Below is a link to that site. python: install [Kindai CVLAB public know-how collection] Python Extension Packages for Windows - Christoph Gohlke
Recommended Posts