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