@CrazyHenry
2018-03-25T16:52:44.000000Z
字数 1668
阅读 1697
vvvvOpenCV学习
- Author:李英民 | Henry
- E-mail: li
_
yingmin@
outlookdot
com- Home: https://liyingmin.wixsite.com/henry
快速了解我: About Me
转载请保留上述引用内容,谢谢配合!
很简单,执行一个.sh即可。一路默认安装即可。
echo 'export PATH="/home/liyingmin/anaconda3/bin:$PATH"' >> ~/.zshrc
#/home/liyingmin/anaconda3/bin就是anaconda的实际路径
source ~/.zshrc
跟Windows上的操作基本一样。注意,能用conda安装的都用conda,否则才考虑用pip安装!
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/msys2/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/bioconda/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/menpo/
conda config --set show_channel_urls yes
#避免权限问题
sudo chown -R liyingmin:liyingmin /home/liyingmin/anaconda3
# 查看所安装的环境
conda info -e
conda update conda #升级conda自身
conda update --all
conda search tensorflow #搜索包名
conda install package_name
conda install keras=2.1.5 #指定版本
conda remove package_names
conda update package_name
conda update --all
conda list
conda install nb_conda #打开notebook才会绑定虚拟环境,在root处安装这个
conda install jupyter #建议直接安装jupyter,包括notebook
conda env list
conda create -n env_name package_names
conda create -n py python=3.6
source activate my_env
source deactivate
conda env export > environment.yaml
conda env remove -n env_name
conda search tensorflow #搜索包名
conda install -c https://conda.binstar.org/menpo opencv3=3.4.1
conda install jupyter
jupyter notebook #打开笔记本
Ubuntu虚拟机无法直接调用到内置的USB摄像头
关于nb_conda:https://stackoverflow.com/questions/37085665/in-which-conda-environment-is-jupyter-executing