将 TOR 与 python 一起使用 找不到安装程序



我正在尝试学习如何将Python与TOR一起使用。但是,我在任何地方都找不到适用于Windows的TOR客户端(相当于Linux上的"apt-get install tor"或Android上的ORbot)。

我找到的只是我已经拥有并使用的 TOR 浏览器。我正在使用带有 Python 的 stem 连接到 TOR,但由于我没有安装任何东西,它失败了:

Traceback (most recent call last):
  File "C:/Users/8bitb/Desktop/Python Stuff/tor.py", line 19, in <module>
    init_msg_handler=print_bootstrap_lines,
  File "C:Python36libsite-packagesstemprocess.py", line 273, in launch_tor_with_config
    return launch_tor(tor_cmd, args, torrc_path, completion_percent, init_msg_handler, timeout, take_ownership)
  File "C:Python36libsite-packagesstemprocess.py", line 86, 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 浏览器,它内置了 Tor 网络。如果您真的需要配置选项,则可以获取专家包。

然后,您需要将 tor 命令行可执行文件(您用于安装 torbrowser 的任何目录)添加到您的 Windows 路径中,这将允许您调用 tor?

看这里

或者,启动后只需通过 tor 代理?

最新更新