词干中无法识别 tor 名称

tor name not recognized in stem

我正在尝试按照 "to russia with love" 教程 (https://stem.torproject.org/tutorials/to_russia_with_love.html) 进行操作,但出现此错误:

[1mStarting Tor:
[0m
Traceback (most recent call last):
  File "C:\Users\gatsu\My Documents\LiClipse Workspace\TorCommunicator\tutorialStart.py", line 52, in <module>
    init_msg_handler = print_bootstrap_lines,
  File "C:\Python34\lib\site-packages\stem\process.py", line 244, in launch_tor_with_config
    return launch_tor(tor_cmd, args, torrc_path, completion_percent, init_msg_handler, timeout, take_ownership)
  File "C:\Python34\lib\site-packages\stem\process.py", line 83, in launch_tor
    raise OSError("'%s' isn't available on your system. Maybe it's not in your PATH?" % tor_cmd)
OSError: 'tor' isn't available on your system. Maybe it's not in your PATH?

我错过了什么?我是否需要向我的项目导入一些东西或添加一些 Tor PATH?我正在使用 windows 8.1.

这意味着 Stem 不知道 tor 可执行文件的位置。您的 PATH 告诉诸如 Stem 之类的应用程序在哪里寻找可执行文件,而 tor 不在任何这些位置。

你有几个选择...

一个。明确告诉 Stem tor 的位置...

stem.process.launch_tor_with_config(tor_cmd='C:\path\to\tor', ...)

b。 Change your path to include tor.