PyCharm “no module named sys”

前端 未结 8 2238
后悔当初
后悔当初 2021-02-06 22:58

Using PyCharm community edition and Python 2.7,

import traceback
import sys

No problem on the first line, which implies that I have pointed PyC

8条回答
  •  野性不改
    2021-02-06 23:49

    I had this issue and I resolved it by updating the default project settings under File -> Default Settings -> Project Interpreter and then in the drop down list for Project Interpreter, selecting the same interpreter as the Run Configuration was using (in my case python 3.6)

提交回复
热议问题