DEV Community 👩‍💻👨‍💻

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

Posted on

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

Top comments (0)

Why You Need to Study Javascript Fundamentals

>> Check out this classic DEV post <<