If youâve just installed PyCharm and havenât set up a Python interpreter, you may encounter this error. You have to go to PyCharm > Preferences >Your projectâs name > Python Interpreter, then click the gear icon and select âaddâ. * Choose âSystem Interpreterâ if you want to use the Python version already installed on your system. If you donât yet have one installed you can install python from the official website.
1 Like