看看是不是版本问题。可能你这个community版本对不上。
1、确保 community 已经安装安装 pip install community2、确保程序目录没有一个 名为 community.py 的文件 或者 community 的目录