Replies: 1 comment 2 replies
-
Did you specify a Python version so that a Python interpreter was installed into your conda environment (as documented in the environments)? If you launch VS Code from your terminal with your conda environment activated then we will use it directly. You can also try opting into our environment discovery experiment to see if that helps as we have been reworking our environment discovery code (we are hoping to open that code up to all users in the next month or so). Also note that the warning you got is not from us; that's most likely coming from conda itself. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Whenever starting a REPL for which the selected Python interpreter would be one in a CONDA environment created (
via
conda create --prefix ...
) as subfolder right there in the VS Code workspace the VS Code python extension is not capable of activating therefore "using" that respective environment, withStart REPL
?I tried everything from
.vscode/settings.json
to.vscode/.launch.json
It will always end up with starting a new Terminal REPL even in case I already activated the CONDA env in the Terminal followed by
So it does notice that this is a CONDA env (of the python interpreter I want to use here) but there is no (at least I have not discovered it) way to convince the VS Code Python extension to activate that selected one!
Because since it is a --prefix environment and not one that would be discoverable by a 'plain vanilla'
conda activate environment_name
BUT only from within the ${worspace_root} viaconda activate .\myCondaEnv
the Python extension startup attempt always fails with environment NOT found and the "hint" to look at the available envs viaconda env list
PLEASE come up with or in case I just have not discovered the correct method to apply here then PLEASE document properly how to achieve THIS!? Feel free to point me to the correct method ...
Thanks ...
Beta Was this translation helpful? Give feedback.
All reactions