本文介绍了词干中无法识别 Tor 名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在努力学习带着爱去俄罗斯"教程(https://stem.torproject.org/tutorials/to_russia_with_love.html) 但我收到此错误:

I am trying to follow the "to russia with love" tutorial (https://stem.torproject.org/tutorials/to_russia_with_love.html) but I am getting this error:

[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.

What am I missing? Do I need to import something to my project or add some Tor PATH? I am using windows 8.1.

推荐答案

这意味着 Stem 不知道 Tor 可执行文件位于何处.您的 PATH 会告诉像 Stem 这样的应用程序去哪里寻找可执行文件,而 Tor 不在这些位置.

That means Stem doesn't know where the tor executable is located. Your PATH tells applications like Stem where to look for executables and tor isn't located in any of those locations.

你有几个选择...

一个.明确告诉 Stem Tor 的位置...

a. Tell Stem explicitly where tor is located...

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

B.更改路径以包含 Tor.

这篇关于词干中无法识别 Tor 名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-26 15:26