我对Python比较陌生。我在尝试使用bugzilla python包时遇到错误。这是我试图执行的代码:
import bugzilla
bz = bugzilla.Bugzilla(url="https://bugzilla.kernel.org")
以下是我收到的错误消息:
AttributeError: module 'bugzilla' has no attribute 'Bugzilla'
以下是我的环境的详细信息:
Windows 10上的PyCharm Community Edition IDE Python 3.6.3版本。
我似乎在PyCharm中正确设置了Python解释器路径,因为我在使用其他包(如pandas)时没有任何问题。
我使用pip安装了bugzilla和python-bugzilla软件包。在这两种情况下我都得到同样的错误。这两个包有什么区别?感谢这方面的任何帮助。