# Discovering Python Interpreters stucks forever

**URL:** <https://forum.cursor.com/t/discovering-python-interpreters-stucks-forever/12392>\
**Category:** Bug Reports\
**Created:** [August 25, 2024, 12:53pm UTC](https://forum.cursor.com/t/discovering-python-interpreters-stucks-forever/12392 "2024-08-25T12:53:20Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![tandav](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/tandav/32/3329_2.png) [@tandav](https://forum.cursor.com/u/tandav)\
**Post date:** [August 25, 2024, 12:53pm UTC](https://forum.cursor.com/t/discovering-python-interpreters-stucks-forever/12392/1 "2024-08-25T12:53:20Z")

</div>

This happens at random moments:

 ![Screenshot 2024-08-25 at 15.53.37](https://us1.discourse-cdn.com/cursor1/original/2X/f/f44e6f165026a139fd3e3845e6580b59b841bdef.png)

Version: 0.39.6  
VSCode Version: 1.91.1  
Commit: a4f99b7dfb14460cb0bcebd9f6ac7ca158217920  
Date: 2024-08-19T00:03:08.275Z  
Electron: 29.4.0  
ElectronBuildId: undefined  
Chromium: 122.0.6261.156  
Node.js: 20.9.0  
V8: 12.2.281.27-electron.0  
OS: Darwin x64 23.5.0

---

<div class="post-metadata">

**Author:** ![litecode](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/litecode/32/2966_2.png) [@litecode](https://forum.cursor.com/u/litecode)\
**Post date:** [August 25, 2024, 1:23pm UTC](https://forum.cursor.com/t/discovering-python-interpreters-stucks-forever/12392/2 "2024-08-25T13:23:21Z")

</div>

Just in case it speeds up the process of troubleshooting, you might want to paste system info from:

`Cursor` \> `Help` \> `About`.

And a few more troubleshooting questions:

Are you using `Interpreter Mode` in Ctrl + L when you see this message?

Do you have Python installed on your system?

If so, which version?

Do you have these extensions from Microsoft installed?

- Python from ms-python
- Jupyter from ms-toolsai

I had [quite a bit of trouble](https://forum.cursor.com/t/failed-to-find-a-kernel-to-run-the-code-please-install-the-jupyter-extension/3676/11) getting Interpreter Mode to work when I first started using Cursor, so I’m aware it requires you to be really clear about what Python version you have installed, and whether you have the required extensions installed and configured properly etc.

---

<div class="post-metadata">

**Author:** ![tandav](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/tandav/32/3329_2.png) [@tandav](https://forum.cursor.com/u/tandav)\
**Post date:** [August 25, 2024, 7:29pm UTC](https://forum.cursor.com/t/discovering-python-interpreters-stucks-forever/12392/3 "2024-08-25T19:29:10Z")

</div>

> [@litecode](#):
>
> - Python from ms-python
> - Jupyter from ms-toolsai

Updated system info in first message.

Yes, I have both extensions:

- Python from ms-python
- Jupyter from ms-toolsai

I have multiple versions of python installed on my system (python3.12 from python org and few from homebrew)

UPD: I disabled \* Jupyter from ms-toolsai, Pylance, Python Debugger and Jupyter extensions end issue is kinda gone

---

<div class="post-metadata">

**Author:** ![tasp](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/tasp/32/4407_2.png) [@tasp](https://forum.cursor.com/u/tasp)\
**Post date:** [September 10, 2024, 8:38pm UTC](https://forum.cursor.com/t/discovering-python-interpreters-stucks-forever/12392/4 "2024-09-10T20:38:52Z")

</div>

This is happening for me as well. Disabling pylance/ms-python extensions fixes it, but that’s not really a solution.

---

<div class="post-metadata">

**Author:** ![amanrs](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/amanrs/32/105_2.png) [@amanrs](https://forum.cursor.com/u/amanrs)\
**Post date:** [September 10, 2024, 9:33pm UTC](https://forum.cursor.com/t/discovering-python-interpreters-stucks-forever/12392/5 "2024-09-10T21:33:40Z")

</div>

An excessive solution that may work is ‘resetting cursor state’. The downside is it would clear your local chat history.

Steps are:

1. Quit Cursor
2. `rm -r ~/.cursor/extensions/*`
3. `rm -rf ~/Library/Application\ Support/Cursor/`
4. Open up Cursor and go through onboarding again/install relevant extensions

I would try skipping step 3 the first time you try this and see if that works before clearing all local state.

---

<div class="post-metadata">

**Author:** ![tasp](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/tasp/32/4407_2.png) [@tasp](https://forum.cursor.com/u/tasp)\
**Post date:** [September 10, 2024, 10:34pm UTC](https://forum.cursor.com/t/discovering-python-interpreters-stucks-forever/12392/6 "2024-09-10T22:34:29Z")

</div>

Fresh install, did all the steps you provided. Still stuck with a “Discovering Python Interpreters”

Version: 0.40.4

VSCode Version: 1.91.1

Commit: 63dae81aea2c3fc079420fe72578a8eef26ba870

Date: 2024-09-05T02:52:05.660Z (5 days ago)

Electron: 29.4.0

ElectronBuildId: undefined

Chromium: 122.0.6261.156

Node.js: 20.9.0

V8: 12.2.281.27-electron.0

OS: Darwin arm64 23.5.0

---

<div class="post-metadata">

**Author:** ![wilhelmklopp](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/wilhelmklopp/32/4930_2.png) [@wilhelmklopp](https://forum.cursor.com/u/wilhelmklopp)\
**Post date:** [September 15, 2024, 4:46pm UTC](https://forum.cursor.com/t/discovering-python-interpreters-stucks-forever/12392/7 "2024-09-15T16:46:58Z")

</div>

Also struggling with this and finding myself go back to VSCode so that i can jump to definition and get the amazing syntax highlighting i’m used to from Pylance.

I use direnv for managing python environments and that all works perfectly fine in VSCode.

ersion: 0.40.4  
VSCode Version: 1.91.1  
Commit: 63dae81aea2c3fc079420fe72578a8eef26ba870  
Date: 2024-09-05T02:52:05.660Z (1 wk ago)  
Electron: 29.4.0  
ElectronBuildId: undefined  
Chromium: 122.0.6261.156  
Node.js: 20.9.0  
V8: 12.2.281.27-electron.0  
OS: Darwin arm64 23.2.0

---

<div class="post-metadata">

**Author:** ![mcrookrumsey](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/mcrookrumsey/32/5138_2.png) [@mcrookrumsey](https://forum.cursor.com/u/mcrookrumsey)\
**Post date:** [September 17, 2024, 3:41pm UTC](https://forum.cursor.com/t/discovering-python-interpreters-stucks-forever/12392/8 "2024-09-17T15:41:14Z")

</div>

I was having problems with the interpreters doing being discovered. All I had to do was to switch the jupyter (ms-toolsai) to pre-release and then it was able to find my interpreters.

---

<div class="post-metadata">

**Author:** ![arkaydeus](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@arkaydeus](https://forum.cursor.com/u/arkaydeus)\
**Post date:** [September 17, 2024, 6:00pm UTC](https://forum.cursor.com/t/discovering-python-interpreters-stucks-forever/12392/9 "2024-09-17T18:00:27Z")

</div>

So I was having this issue on one user on my machine and not another. Turned out that cursor was installing the universal versions of the python extensions in the broken profile and the darwin-arm64 versions in the one that works fine.

Still trying to identify how you can force darwin-arm64 versions.

Check your ~/.cursor/extensions folder. If you have the universal version of Python and not the darwin-arm64 version, this is probably what is causing the problem.

---

<div class="post-metadata">

**Author:** ![philipjames44](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/philipjames44/32/6553_2.png) [@philipjames44](https://forum.cursor.com/u/philipjames44)\
**Post date:** [September 26, 2024, 8:18pm UTC](https://forum.cursor.com/t/discovering-python-interpreters-stucks-forever/12392/10 "2024-09-26T20:18:53Z")

</div>

Im still having this issue on an M1 chip after going through all of the above. Im surprised there aren’t more people experiencing this.

---

<div class="post-metadata">

**Author:** ![gormlabenz](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/gormlabenz/32/7612_2.png) [@gormlabenz](https://forum.cursor.com/u/gormlabenz)\
**Post date:** [October 8, 2024, 10:21am UTC](https://forum.cursor.com/t/discovering-python-interpreters-stucks-forever/12392/11 "2024-10-08T10:21:09Z")

</div>

Same Problem here. In VS Code it is working, but not in Cursor.

Version: 0.41.3  
VSCode Version: 1.91.1  
Commit: 51c8aff7cb5a89f4a0e462fbacab938bdbfaf140  
Date: 2024-09-25T17:13:50.377Z  
Electron: 29.4.0  
ElectronBuildId: undefined  
Chromium: 122.0.6261.156  
Node.js: 20.9.0  
V8: 12.2.281.27-electron.0  
OS: Darwin arm64 24.0.0

---

<div class="post-metadata">

**Author:** ![wilhelmklopp](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/wilhelmklopp/32/4930_2.png) [@wilhelmklopp](https://forum.cursor.com/u/wilhelmklopp)\
**Post date:** [October 10, 2024, 4:28pm UTC](https://forum.cursor.com/t/discovering-python-interpreters-stucks-forever/12392/12 "2024-10-10T16:28:58Z")

</div>

I just took another stab at resolving this and it seems to have worked:

 ![image](https://us1.discourse-cdn.com/cursor1/original/2X/d/d70c018ea3505c8a4ce8f33e13b15e5079ed33e4.png)

I saw a lot of old python versions in my `~/.pyenv`, so i went and deleted everything older than 3.11 and now it’s all working nicely and no longer stuck on “Discovering Python interpreters”

I never directly use these pyenv versions in Cursor/VSCode (i always use a venv or direnv), so was surprised this worked, but it did!

---

<div class="post-metadata">

**Author:** ![gormlabenz](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/gormlabenz/32/7612_2.png) [@gormlabenz](https://forum.cursor.com/u/gormlabenz)\
**Post date:** [October 10, 2024, 8:10pm UTC](https://forum.cursor.com/t/discovering-python-interpreters-stucks-forever/12392/13 "2024-10-10T20:10:19Z")

</div>

That worked for me too! 😍 😍

---

<div class="post-metadata">

**Author:** ![svet](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/svet/32/9891_2.png) [@svet](https://forum.cursor.com/u/svet)\
**Post date:** [October 27, 2024, 1:27pm UTC](https://forum.cursor.com/t/discovering-python-interpreters-stucks-forever/12392/14 "2024-10-27T13:27:42Z")

</div>

I also got hit by this and had to take a couple of additional steps to get this sorted. This is on an M1 Mac.

Started with fresh install, with extensions set up from scratch. Then “Discovering Python Interpreters” got stuck as soon as I installed the Python extension.

I had a few different Python versions installed via `homebrew` and `pyenv` but after reading the thread removed everything apart from the ones actually in use: 3.11 (installed via `pyenv`) and 3.12 (installed via `homebrew`).

This didn’t solve the issue.

I also had a number of virtual environments set up via `pipenv`, and I knew that some of these would be linked to old (now uninstalled) versions of Python. So I deleted any dead symlinks by running

```auto
find ~/.local/share/virtualenvs -type l -name "python" ! -exec test -e {} \; -exec rm {} \;

```

This last part got the “Discovering Python Interpreters” process to finally run successfully.

A couple of notes:

- you can replace `-exec rm {} \;` with `-print` to simply show the dangling symlinks
- if you’re feeling braver you can also replace it with `-exec` with `-execdir sh -c 'rm -rf "$(dirname "$(pwd)")"' \;` in order to delete each of the outdated virtualenvs entirely, not just the dangling `python` symlinks
- doing this kind of cleanup was fine in my case since I use `pipenv` and the contents of each virtual environment are defined elsewhere, meaning I could easily recreate any that I’m actually using. But anyone who has hand-crafted environments should obviously proceed with caution

---

<div class="post-metadata">

**Author:** ![manuganji](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/manuganji/32/5805_2.png) [@manuganji](https://forum.cursor.com/u/manuganji)\
**Post date:** [December 17, 2024, 9:16am UTC](https://forum.cursor.com/t/discovering-python-interpreters-stucks-forever/12392/15 "2024-12-17T09:16:50Z")

</div>

Thank you. This helped. The loop ended after I deleted some old `~/.local/share/virtualenvs` and restarting Cursor.

---

<div class="post-metadata">

**Author:** ![aaronkub](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/aaronkub/32/25589_2.png) [@aaronkub](https://forum.cursor.com/u/aaronkub)\
**Post date:** [February 10, 2025, 3:19am UTC](https://forum.cursor.com/t/discovering-python-interpreters-stucks-forever/12392/16 "2025-02-10T03:19:57Z")

</div>

Worked for me!

---

<div class="post-metadata">

**Author:** ![tadasant](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/tadasant/32/20042_2.png) [@tadasant](https://forum.cursor.com/u/tadasant)\
**Post date:** [April 18, 2025, 1:46am UTC](https://forum.cursor.com/t/discovering-python-interpreters-stucks-forever/12392/17 "2025-04-18T01:46:46Z")

</div>

+1 on this, surprising it worked but it did!

---

<div class="post-metadata">

**Author:** ![reouno](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/reouno/32/54129_2.png) [@reouno](https://forum.cursor.com/u/reouno)\
**Post date:** [May 11, 2025, 9:37am UTC](https://forum.cursor.com/t/discovering-python-interpreters-stucks-forever/12392/19 "2025-05-11T09:37:57Z")

</div>

Worked for me!

---

<div class="post-metadata">

**Author:** ![longhoangwkm](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/longhoangwkm/32/56253_2.png) [@longhoangwkm](https://forum.cursor.com/u/longhoangwkm)\
**Post date:** [May 19, 2025, 8:12am UTC](https://forum.cursor.com/t/discovering-python-interpreters-stucks-forever/12392/20 "2025-05-19T08:12:37Z")

</div>

That worked for me too, thanks

---

<div class="post-metadata">

**Author:** ![smendoza787](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/smendoza787/32/9738_2.png) [@smendoza787](https://forum.cursor.com/u/smendoza787)\
**Post date:** [May 21, 2025, 7:20pm UTC](https://forum.cursor.com/t/discovering-python-interpreters-stucks-forever/12392/21 "2025-05-21T19:20:34Z")

</div>

Oh my gosh, deleting the older python versions in `~/.pyenv` fixed it for me! This has been a huge productivity drain on me for months and I’m so grateful this worked.

[Next page](https://forum.cursor.com/t/discovering-python-interpreters-stucks-forever/12392.md?page=2)
