Install and Setting Anaconda with python3.x version
1. install anaconda
look this link: https://www.continuum.io/downloads
2. setting anaconda
- Add the anaconda bin PATH in your .bashrc file or maybe you are using zsh the file will be .zshrc:
1
vim .bashrc
- add the following line to the file
1
export PATH="~/anaconda3/bin:$PATH"
- and then load the config use
source .bashrc3. update and create environment
- update
conda update --all - create enviroment
1
conda creat --name opencv python=3
4. install opencv
- activate enviroment
1
source activate opencv
- install opencv
1
conda install -c menpo opencv3
5. test opencv
1
2python
import cv2
6. setting pycharm to use the opencv environment
- open the
File-->Settings-->Project Interpreter,click the right button like a gear then click add local input the path of~/anaconda3/envs/opencv/bin/pythonclick ok button to save the setting
like the following pic:
