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
1export PATH="~/anaconda3/bin:$PATH"and then load the config use
source .bashrc
3. update and create environment
- update
conda update --all
- create enviroment1conda creat --name opencv python=3
4. install opencv
activate enviroment
1source activate opencvinstall opencv
1conda install -c menpo opencv3
5. test opencv
|
|
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/python
click ok button to save the setting
like the following pic: