PyCharm “no module named sys”

前端 未结 8 2189
后悔当初
后悔当初 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.

    0 讨论(0)
  • 2021-02-06 23:53

    PyCharm has virtual Enviroment and System Interpreter. Select system interpreter

    0 讨论(0)
提交回复
热议问题