-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VS Code can't find Homebrew-installed Conda #23162
Comments
I tested it with |
@kxmh42 You can see here that we specifically look at
The latest version of the extension is: 2024.5.11172159 and you will need latest VS Code insiders to install the latest python extension insiders. |
I updated to v2024.7.11241010 and can see the above |
Can you provide logs (Output > Python)again with the latest extension? Make sure you have VS Code version 1.89, and the python extension version 2024.6.0 or greater. |
VS Code v. 1.89.0, Python extension v2024.7.11241010
|
See the comment in
And the definition of
Adding In addition to |
@kxmh42 Thanks for looking into this. I got this wrong when I tried it, I will do a fix soon. |
This should now be fixed with the native locator. |
Applies To
What happened?
brew install miniconda
ipynb
file.Expected result: A menu with a choice of the version of Python to install in the environment.
Actual result: An error box in the bottom right corner, saying
Install `conda` to create conda environments
.Probable root cause: the hardcoded glob patterns for searching Conda in src/test/interpreters/condaService.node.ts, which don't match
/opt/homebrew/bin/conda
.Quick workaround:
cd /opt && sudo ln -s homebrew conda
(since/opt/conda/bin/conda
is matched by the patterns).A quick solution would be to add a pattern for Homebrew, and a better one would be to look for Conda in a way that is independent of the way it is installed.
VS Code Version
Version: 1.87.2 Commit: 863d2581ecda6849923a2118d93a088b0745d9d6 Date: 2024-03-08T15:20:57.520Z (3 wks ago) Electron: 27.3.2 ElectronBuildId: 26836302 Chromium: 118.0.5993.159 Node.js: 18.17.1 V8: 11.8.172.18-electron.0 OS: Darwin arm64 23.3.0
Jupyter Extension Version
v2024.2.0
Jupyter logs
No response
Coding Language and Runtime Version
No response
Language Extension Version (if applicable)
No response
Anaconda Version (if applicable)
No response
Running Jupyter locally or remotely?
Local
The text was updated successfully, but these errors were encountered: