已有183人关注
pycharm配置
发表在Python图书答疑 2019-12-26 《Python从入门到项目实践》第10章 字典与集合
是否精华
版块置顶:
random
randomdiction={i:random.randint() i ()}
(randomdiction)

出现下列提示,在自带编译器中没有错误

D:\python\venv\Scripts\python.exe D:/python/07.py

Fatal Python error: init_import_size: Failed to import the site module

Python runtime state: initialized

Traceback (most recent call last):

  File "C:\python3.8.1\lib\site.py", line 580, in <module>

    main()

  File "C:\python3.8.1\lib\site.py", line 557, in main

    known_paths = removeduppaths()

  File "C:\python3.8.1\lib\site.py", line 127, in removeduppaths

    dir, dircase = makepath(dir)

  File "C:\python3.8.1\lib\site.py", line 92, in makepath

    dir = os.path.join(*paths)

AttributeError: module 'os' has no attribute 'path'


Process finished with exit code 1


分享到:
精彩评论 1
Kiwi_KANG
学分:45 LV2
2019-12-26
沙发
setting里面没设置解释器路径吧
首页上一页 1 下一页尾页 1 条记录 1/1页
手机同步功能介绍
友情提示:以下图书配套资源能够实现手机同步功能
明日微信公众号
明日之星 明日之星编程特训营
客服热线(每日9:00-17:00)
400 675 1066
mingrisoft@mingrisoft.com
吉林省明日科技有限公司Copyright ©2007-2022,mingrisoft.com, All Rights Reserved长春市北湖科技开发区盛北大街3333号长春北湖科技园项目一期A10号楼四、五层
吉ICP备10002740号-2吉公网安备22010202000132经营性网站备案信息 营业执照