我正试着用爱来跟随俄罗斯"教程(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。
答案 0 :(得分:1)
这意味着Stem不知道tor可执行文件的位置。您的PATH告诉像Stem这样的应用程序在哪里查找可执行文件,而tor不在任何这些位置。
你有几个选择......
一个。告诉Stem明确tor所在的位置......
stem.process.launch_tor_with_config(tor_cmd='C:\path\to\tor', ...)