17

My python interpreter version does not show up at the bottom of the status bar on VS code on my Mac, it used to but suddenly stopped. Everything works but it just doesn’t show, I tried many possible solutions such as:

  1. right clicking the bar to have the Python Extension checked (which I don’t even have an option to check)
  2. uninstalling all the extensions then reinstalling it but it didn’t help. Even after restarting my computer.
  3. I also can't seem to add python.pythonPath in my settings.json file if that has something to do with it and if it does how can I get that? When I try to add that in my VS code settings.json, it says 'unknown configuration"

Basically I would just like to see the python version on the status bar.

status bar on vs code

greenforest
  • 223
  • 1
  • 2
  • 7

4 Answers4

38

Turned out it was placed to a new place in the status bar. Here's how to pin it on the status bar now:

  1. Hover over the {} next to the Python language chooser
  2. Click the pin icon
  3. The selection of the Python environment becomes pinned to the status bar on the right hand side

enter image description here

slhck
  • 36,575
  • 28
  • 148
  • 201
CakeL
  • 554
  • 3
  • 7
  • Thanks, that helped! Hey, how did you get Python 3.10 via miniconda? The latest I can install seems to be 3.9.7. – mph Mar 16 '22 at 18:45
  • Ah, I typed "conda install python=3.10", and miniconda installed Python 3.10.0. Hmm. – mph Mar 16 '22 at 19:01
  • The answer solved my problem. It has been quite annoying for a few weeks. Now it is solved. – GoingMyWay Mar 18 '22 at 08:00
  • @mph usually the latest version of most packages can be installed with the conda-forge source channel. – CakeL Mar 21 '22 at 02:22
9

Have a look at the current v1_64 Changelog https://code.visualstudio.com/updates/v1_64 and search for Status bar. It seems like it has been experimentally moved to the right beside the Language status and is obviously not that clear anymore as it is just a {} in my case. When hovering over it, it reveals the current selected interpreter.

enter image description here

Tschabadu
  • 161
  • 1
  • 8
3

The new python environment selection button had been moved to the bottom-right of the status bar, at first, I tried to disable and enable the Python extension several times and I cannot find the button at the original bottom-left of the status bar. Then I kept using Cmd + Shift + P to search and manually select python interpreter before I noticed the new position of that button.

enter image description here

Tyler2P
  • 2,324
  • 26
  • 22
  • 31
Ember Xu
  • 344
  • 2
  • 9
1
  1. First, make sure that your load status is checked in vscode. from View> Appearance> Status Bar Picture one

  2. Then go to the status bar and these two options should be checked like in the picture. Picture Two

  3. Press the Shift + Ctrl + P like picture and Write Python: Select Interpreter then Hit the Enter Picture Three

  4. Choose recommended or global interpreter. Picture four

  5. If you don't see any interpreter version in the status bar like this picture, make sure you have at least one Python file open in vscode. Picture five

  6. Now when you open a Python file, you will see the version of the Python interpreter in the status bar. Picture six

I hope it works

Astiyaxh
  • 11
  • 2