Linux Conda 使用activate无法进入环境,但list中有环境的路径
安装OpenFace时装了个miniconda,之后就进不去anaconda的其它环境了:
(pfld) 。。。。。$ conda env list
# conda environments:
#
/home/deeplearning/anaconda3/home/deeplearning/anaconda3/envs/common/home/deeplearning/anaconda3/envs/openface
/home/deeplearning/anaconda3/envs/pfld
/home/deeplearning/anaconda3/envs/public_env
。。。。。。
base /home/deeplearning/miniconda3
pfld * /home/deeplearning/miniconda3/envs/pfld (pfld) 。。。。。$ conda activate public_env EnvironmentNameNotFound: Could not find conda environment: public_env
You can list all discoverable environments with `conda info --envs`.
仔细看,左边这列的"base",指向miniconda,anaconda的环境都没了名字。说明当前正在miniconda中。
这时需要通过"activate [anaconda的环境路径]"和"source activate"回到anaconda:
(pfld) 。。。。。。$ conda activate /home/deeplearning/anaconda3
(/home/deeplearning/anaconda3) 。。。。。。$ source activate
(/home/deeplearning/anaconda3) 。。。。。。$ conda env list
# conda environments:
#
base * /home/deeplearning/anaconda3
common /home/deeplearning/anaconda3/envs/common
openface /home/deeplearning/anaconda3/envs/openface
pfld /home/deeplearning/anaconda3/envs/pfld
public_env /home/deeplearning/anaconda3/envs/public_env/home/deeplearning/miniconda3
/home/deeplearning/miniconda3/envs/pfld
可以看见anaconda环境的名字都回来了,而miniconda的环境名都消失了,这时便可以使用"conda activate <env_name>"跳转到anaconda的环境。
openface并不一定要miniconda,所以可以把它卸了:卸载miniconda
Step 1.
Install miniconda
with the following commands wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh
and follow instructions.
Add a Python 2.7 environment with: conda create --name openface python=2.7
Activate the new env with: source activate openface
Step 2.
Install dependencies Add the conda-forge
channel with: conda config --add channels conda-forge
conda install opencv numpy pandas scipy scikit-learn scikit-image dlib txaio twisted autobahn OpenSSL pyopenssl imagehash service_identity
Step 3.
Install Torch and dependencies Deactivate the openface
environment by opening a new terminal. git clone https://github.com/torch/distro.git ~/torch --recursive
cd ~/torch; bash install-deps;
./install.sh
*
Execute the following to install the Torch deps for NAME in dpnn nn optim optnet csvigo cutorch cunn fblualib torchx tds; do luarocks install $NAME; done
Step 4.
Install open face in openface
environment using source activate openface
git clone https://github.com/cmusatyalab/openface.git ~/openface
cd openface
python setup.py install
*
Download dlib
s models with: ./models/get-models.sh
Open face is now installed. Test it with * ./demos/classifier.py infer models/openface/celeb-classifier.nn4.small2.v1.pkl ./images/examples/carell.jpg
最新文章
- window环境下将solr6.3部署到tomcat中
- 关于ASPXGridview的双击事件弹出 【转】
- BZOJ4117 : [Wf2015]Weather Report
- [Angular2 Form] Style Validation in Angular 2 Forms
- 分页 page
- 基于Qt5.x的QCA加解密开源项目的编译过程
- C#根据汉字生成拼音首字母全称
- 第9课_3_db库安装
- 【MongoDB】在windows平台mongodb切片集群(三)
- trove design翻译
- myeclipse的一些优化设置
- Activiti就是这么简单
- 8-Flink中的窗口
- 自己遇到过的出现java.lang.StackOverflowError的原因
- [EXP]Memu Play 6.0.7 - Privilege Escalation
- python同步原语--线程锁
- K-mer分析
- 关于sru源码class Model的parameters
- c#中lock的使用(用于预约超出限额的流程)
- FrameBot 软件安装测试