添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
奋斗的竹笋  ·  Mac OS安装Python的pip - ...·  1 周前    · 
任性的棒棒糖  ·  Copy a database - ...·  6 月前    · 
慷慨大方的跑步机  ·  hive sql ...·  10 月前    · 
瘦瘦的斑马  ·  docker GitLab-runner ...·  1 年前    · 
Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

There is a red line below sys and time, I am using pycharm community edition 4.5.3, it is showing the reason for this error is ' no module named sys ' and same for time. But when i tried to run it, it works perfectly.

What is the reason behind it and will it affect my code in future?

jetbrains.com/help/pycharm/configuring-python-interpreter.html Navigate to python2.7 instead of just python maksim Oct 30, 2017 at 22:59

This is something I just ran into with Intellij 2017.3.4 where it could find every module except sys and time in the editor, but everything would run fine. I had both 2.7 and 3.5 version of python and it did not seem to matter which one I selected as the SDK. I tried adding and removing them.

When I went to Project Structure -> Platform Settings -> SDKs -> Python 3.5 -> Packages it prompted a warning that Python packaging tools not found. and had an install link. I installed it and the editor no longer complained about sys and time. When I switched SDKs to 2.7 (without installing the packaging tools) it complained again.

So I am not exactly sure what is happening that that seemed to fix it for me it other people run into this problem.

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question . Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers .