开发者社区> 问答> 正文

pycharm运行程序报错?报错

我用pycharm写的python代码昨天还能用,今天突然就不能运行了  直接print “hello,world”也会报错。

报错信息如下:

D:\Python27\python.exe "D:\Program Files (x86)\JetBrains\PyCharm 5.0.1\helpers\profiler\run_profiler.py" 127.0.0.1 52394 E:/python/deflo.py
Traceback (most recent call last):
  File "D:\Python27\lib\site.py", line 548, in <module>
    main()
  File "D:\Python27\lib\site.py", line 527, in main
    known_paths = removeduppaths()
  File "D:\Python27\lib\site.py", line 110, in removeduppaths
    dir, dircase = makepath(dir)
  File "D:\Python27\lib\site.py", line 80, in makepath
    dir = os.path.join(*paths)
AttributeError: 'module' object has no attribute 'path'

哪位大神给看下

展开
收起
爱吃鱼的程序员 2020-06-10 14:13:27 827 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    print(“helloworld”)

    2020-06-10 14:13:45
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
15分钟打造你自己的小程序 立即下载
小程序 大世界 立即下载
《15分钟打造你自己的小程序》 立即下载