安装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

参考:conda环境名消失的解决办法

附:openface安装步骤

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 dlibs 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

最新文章

  1. window环境下将solr6.3部署到tomcat中
  2. 关于ASPXGridview的双击事件弹出 【转】
  3. BZOJ4117 : [Wf2015]Weather Report
  4. [Angular2 Form] Style Validation in Angular 2 Forms
  5. 分页 page
  6. 基于Qt5.x的QCA加解密开源项目的编译过程
  7. C#根据汉字生成拼音首字母全称
  8. 第9课_3_db库安装
  9. 【MongoDB】在windows平台mongodb切片集群(三)
  10. trove design翻译
  11. myeclipse的一些优化设置
  12. Activiti就是这么简单
  13. 8-Flink中的窗口
  14. 自己遇到过的出现java.lang.StackOverflowError的原因
  15. [EXP]Memu Play 6.0.7 - Privilege Escalation
  16. python同步原语--线程锁
  17. K-mer分析
  18. 关于sru源码class Model的parameters
  19. c#中lock的使用(用于预约超出限额的流程)
  20. FrameBot 软件安装测试

热门文章

  1. html内容超宽后,缩小可视区域后,会引起部分背景色宽度出现显示异常情况,解决如下:
  2. Java自动装箱与拆箱
  3. Ceph RGW误删index对象恢复
  4. 亲测有效! Super PhotoCut Pro 超级抠图工具 V2.8.8 for mac 破解版
  5. Snipaste下载安装(使用教程)
  6. 超详细!Jmeter性能测试
  7. Archiver Appliance bug report(问题已解决,见文末)
  8. Redux Toolkit 的使用方法
  9. 图论之最短路径Dijkstra算法
  10. CenterOS7上搭建RabbitMQ集群