Cannot run program error in PyCharm after moving your project

If you see the error below in PyCharm after moving your Python project to the different folder,
 
Error running 'filename.py': Cannot run program "/home/my_name/PycharmProjects/untitled/venv/bin/python" (in directory "/home/my_name/repo_name/ocr"): error=2, No such file or directory

this means that PyCham cannot find the python interpreter.
PyCharm still remembers the previous folder location and it is already removed.

To fix this, go into PyCharm > Preferences... in the main menu. Then click Project: Editor > Project Interpreter in the pop-up window.
You should see the Project interpreter is red-marked. click the cog button on the right, then select the new location where python exists.


Comments

  1. I am very impressed with your post because this post is very beneficial for me and provide a new knowledge to me.
    windows-11-iso-free-download/
    pycharm
    blue-iris

    ReplyDelete

Post a Comment

Popular Posts