DEV Community

Cover image for no pyvenv.cfg file or, Python Interpreter error
Shahriyar Al Mustakim Mitul
Shahriyar Al Mustakim Mitul

Posted on

20 2

no pyvenv.cfg file or, Python Interpreter error

[Solved this two Stack Over Flow issue:
1)
https://stackoverflow.com/questions/52404529/cannot-setup-a-python-sdk-in-pycharm-project-using-virtualenv-after-os-reinsta/70457029#70457029

2) https://stackoverflow.com/questions/61026458/no-pyvenv-cfg-file]

Delete venv (Virtual Environment) folder if it exists in the project
then go to File>Settings>Project>Python Interpreter . Click the Python Interpreter box and select Show all . Delete Invalid Interpreter by clicking (-)

1

2

3
Click + to create a new venv

4

5

You may see this then:

6
Now run a code and it will be solved
Code run

Image of Datadog

The Essential Toolkit for Front-end Developers

Take a user-centric approach to front-end monitoring that evolves alongside increasingly complex frameworks and single-page applications.

Get The Kit

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay