- Machine Learning for OpenCV
- Michael Beyeler
- 215字
- 2021-07-02 19:47:16
Installing OpenCV in a conda environment
In a terminal, navigate to the directory where you downloaded the code:
$ cd Desktop/opencv-machine-learning
Before we create a new conda environment, we want to make sure we added the Conda-Forge channel to our list of trusted conda channels:
$ conda config --add channels conda-forge
The Conda-Forge channel is led by an open-source community that provides a wide variety of code recipes and software packages (for more info, see https://conda-forge.github.io). Specifically, it provides an OpenCV package for 64-bit Windows, which will simplify the remaining steps of the installation.
Then run the following command to create a conda environment based on Python 3.5, which will also install all the necessary packages listed in the file requirements.txt in one fell swoop:
$ conda create -n Python3 python=3.5 --file requirements.txt
To activate the environment, type one of the following, depending on your platform:
$ source activate Python3 # on Linux / Mac OS X
$ activate Python3 # on Windows
Once we close the terminal, the session will be deactivated--so we will have to run this last command again the next time we open a terminal. We can also deactivate the environment by hand:
$ source deactivate # on Linux / Mac OS X
$ deactivate # on Windows
And done!
- C++程序設(shè)計教程
- WildFly:New Features
- Delphi程序設(shè)計基礎(chǔ):教程、實(shí)驗(yàn)、習(xí)題
- PHP網(wǎng)絡(luò)編程學(xué)習(xí)筆記
- Java Web開發(fā)技術(shù)教程
- Spring Boot企業(yè)級項(xiàng)目開發(fā)實(shí)戰(zhàn)
- Java實(shí)戰(zhàn)(第2版)
- AutoCAD 2009實(shí)訓(xùn)指導(dǎo)
- Building Serverless Web Applications
- Python網(wǎng)絡(luò)爬蟲技術(shù)與應(yīng)用
- Learning Nessus for Penetration Testing
- Modernizing Legacy Applications in PHP
- Python深度學(xué)習(xí):基于PyTorch
- Neo4j權(quán)威指南 (圖數(shù)據(jù)庫技術(shù)叢書)
- Learning ClojureScript