在服务器用conda创建python环境

conda cheatsheet

首先,尝试conda list,提示not command,解决方法:

在.bashrc 的末尾添加如下一行:

export PATH=/opt/anaconda3/bin/:$PATH

之后conda list,正常。

创建:

conda create -n vso python=2.7

激活:

source activate vso

然后就可以开始安装需要的package

pip install imutils

pip install numpy

pip install opencv-python

pip install dlib:安装dlib的时候又出现了cmake报错,用pip install CMake,搞定

pip install scipy

pip install matplotlib

pip install sklearn

pip install ffmpeg-normalize

conda install ffmpeg

conda install -c conda-forge librosa=0.6.3

conda install x264 ffmpeg -c conda-forge(为了用h.264编码,参考:https://teratail.com/questions/156621)

你可能感兴趣的:(在服务器用conda创建python环境)