我安装了该stem
模块,并从他们官方网站上的教程中复制/粘贴了一些内容。他们都没有在这里工作。
事实上,当我在命令行中键入“from stem.control import Controller”时,它甚至都不起作用。这让我得到以下“错误代码”:
>>> from stem.control import Controller
Traceback (most recent call last):
File "<frozen importlib._bootstrap>", line 1521, in _find_and_load_unlocked
AttributeError: 'module' object has no attribute '__path__'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
from stem.control import Controller
File "C:\Python33\_PROJECTS\stem.py", line 6, in <module>
import build.lib.stem.process
File "C:\Python33\lib\build\lib\stem\__init__.py", line 421, in <module>
import stem.util.enum
ImportError: No module named 'stem.util'; stem is not a package
我正在使用 Python 3,stem
应该可以使用它。我在这里错过了一些非常明显的东西吗?