pycharm error whith running code

Hi, when I run a Python code using PyCharm, the output is always "No pyvenv.cfg file." How can I fix the error and run any code using PyCharm

0
1 comment

Hi Abdalrahmandaboor 

The issue is likely related to a broken/corrupt interpreter. 

You can verify this by running your python script also from a terminal (using same virtual environment) and not from Pycharm. 

Can you delete the current interpreter and create it from scratch as described here https://www.jetbrains.com/help/pycharm/creating-virtual-environment.html

 

Please let me know if this fixes your issue.

Kind regards,

 

 

0

Please sign in to leave a comment.