PyCharm “no module named sys”

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

    I have had this issue with PyCharm before. I find that reloading the interpreter fixes the issue.

    File -> Settings -> Project -> Project Interpreter

    Remove the interpreter and add it again.

提交回复
热议问题