RUN echo "source /opt/conda/bin/activate nlp" > ~/.bashrc
ln -s /opt/conda/envs/nlp/bin/python /bin/python
#方法一
/root/.local/share/code-server/User/settings.json
添加:
"python.defaultInterpreterPath": "/opt/conda/envs/nlp/bin/python",
"python.condaPath": "/opt/conda/envs/nlp/bin/python"
}
#方法二
Ctrl+Shift+P
搜索:Python: Select Interpreter
选择路径填入上一步的地址中