I ran into an issue where I had created a .venv through the “Python interpreter“ setting windows and, for some reason, it had picked up a specific version rather than the “current” version.
What happened next?
The Problem
The “current” version changes as you update the Scoop package, while the specific version could disappear if you run the Scoop cleanup command.
Also, I couldn’t run any tests because PyCharm told me: No python.exe found at C:\Users\jlitzler\scoop\apps\python312\3.12.7\
How Did I Recover From the Situation?
- I deleted the
.venvfolder - I went back to the “Python interpreter“setting windows and added a new interpreter, making sure the path to the Python executable was set to
C:\Users\jlitzler\scoop\apps\python312\current\. - I applied the changes.
- I ran the command
pip install -r requirements.txtin the Terminal to reinstall the project’s packages.
And tada, I could run the tests!
Follow me
Thanks for reading this article. Make sure to follow me on X, subscribe to my Substack publication and bookmark my blog to read more in the future.
Credit: Photo by Pixabay on Pexels.