PyCharm “no module named sys”

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

    File -> Settings -> Project: (your_project_name) -> Project Interpreter -> press the + symbol -> search for 'system' and install package.

    This solved the problem for me.

提交回复
热议问题