PyCharm “no module named sys”

前端 未结 8 2237
后悔当初
后悔当初 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:32

    Make sure you've chosen the right Interpreter path and check some other run settings. Go to Run > Edit Configurations... and check, if some configurations seem to be wrong.

    EDIT: Under Linux, you have often Python 2 and 3 installed, be sure to pick the correct one.

提交回复
热议问题