-
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
Warning about system python in MacOS but correctly uses virtualenv #804
Comments
If it is annoying you, you can set |
well, thanks for the suggestion, but it's not a matter of be annoyed 😀 |
Please could you install the Insiders build of the extension (see here under Insiders Build). |
Yes, we are working on the fix. I just meant temp workaround. |
@DonJayamanne unfortunately the issue persists with the insider build (2018.2.0-alpha) |
why not add an interpreter menu in the IDE itself to select the interpreter from the system? |
@rpranshu I think you're talking of the menu you get if you click on the python version in the bottom bar. |
Will look into this. @MikhailArkhipov const pythonInstaller = new PythonInstaller(serviceContainer);
pythonInstaller.checkPythonInstallation(PythonSettings.getInstance())
.catch(ex => console.error('Python Extension: pythonInstaller.checkPythonInstallation', ex));
// This must be completed before we can continue.
await interpreterManager.autoSetInterpreter(); Also shouldn't we be looking for just the Osx python installs instead of checking if the phon installation is undefined (i.e. if all interpreters in the list start with /usr/bin/python or similar then they are the OSX interpreters that aren't supported). Not sure if we're also checking the os. |
Yes, It keeps appearing for me as well as "Linting is not installed.....install" and when I clicked on install "Linting could not be found" |
add this key-value line in vscode settings:
|
@heshiweij after add it, still appears message |
Please open a new issue if you're incorrectly getting the banner. |
Configuring Python environments :
===============
and then:
|
Environment data
VS Code version: 1.20.1
Python Extension version: 2018.1.0
Python Version: 3.5.4 and 2.7.10
OS and version: MacOS 10.13.3
Actual behavior
VSCode shows a warning: "Selected interpreter is macOS system python which is not recommended. Please select different interpreter" but the venv version (3.5.4) is correctly selected (see screenshot) and seems to be correctly used (the system version is 2.7.10).
Expected behavior
The warning shouldn't be shown
Steps to reproduce:
cd
to the project foldercode .
Logs
Output from
Python
output panelOutput from
Console window
(Help->Developer Tools menu)The text was updated successfully, but these errors were encountered: