conda create 报错解决

1.  

输入命令: conda create -n query-scorer-serving python=2.7

报错: Solving environment: failed

  CondaError: No writable package cache directories found in
  ('/data/conda/pkgs', '/opt/conda/pkgs')
原因: 一般在服务器上没有写入的权限,

解决办法: 需要在前面加入sudo权限.

2.

输入命令:  sudo conda create -n query-scorer-serving python=2.7

报错:  sudo: conda: command not found

原因: conda环境变量没有设置.

解决办法:

  sudo which conda

  找到conda的绝对路径

  sudo /opt/conda//bin/conda create -n query-scorer-serving python=2.7

posted on 2019-08-13 19:30  吱吱了了  阅读(6209)  评论(0编辑  收藏  举报

导航