简体   繁体   中英

Is it possible to activate a conda environment prefixed with a path from VSCode?

For example conda create -p $PWD/env will create a new conda environment prefixed with the current working directory.

To activate the environment, I use the command conda activate $PWD/env .

VSCode has no problems seeing the environment. After selecting the correct interpreter and starting a new integrated terminal, VSCode tries to activate the environment with the following command conda activate env which does not work.

Is there a way to get VSCode to use the full path to activate the correct environment in the integrated terminal?

You can disable the automatic activation if you would rather do it manually, but currently the support isn't structured for this situation. Feel free to open a feature request at https://github.com/microsoft/vscode-python to support your use case.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM