PyCharm Venv Issues Continue
Global Venv Interference
About 3 days ago, I published a post about Fixing PyCharm’s Missing Imports and Linting on Fedora Silverblue, but a day later, I ran into yet another venv-related issue. The Problem I was experiencing a strange issue where: Everything seemed to be working - I could install packages, linting was functional, and scripts ran fine But Black formatter refused to work - it would fail with an error when trying to format code PyCharm showed the interpreter name in the bottom right, but clicking it showed nothing - as if no interpreter was configured In the interpreter settings, my project’s venv was marked as [invalid], but PyCharm was actually using a different venv from my home directory instead PyCharm insisted on using Python 3.
Read more...