OSError:'tor'在您的系统上不可用也许它不在您的路径中?

问题描述

使用的 IDE :IntellIJ IDEA

Python应用程序的

源代码

from torrequest import TorRequest

with TorRequest() as tr:
    response = tr.get('http://ipecho.net/plain')
    print(response.text)  # not your IP address

    tr.reset_identity()

    response = tr.get('http://ipecho.net/plain')
    print(response.text)  # another IP address,not yours

运行Python应用程序后发生错误

    C:\Users\Alex\venv\Scripts\python.exe C:/Users/Alex/IdeaProjects/torRequestExperiment/tor.py 
Traceback (most recent call last):   File "C:/Users/Alex/IdeaProjects/torRequestExperiment/tor.py",line 5,in <module>
        with TorRequest() as tr:   File "C:\Users\Alex\venv\lib\site-packages\torrequest.py",line 21,in
    __init__
        self._tor_proc = self._launch_tor()   File "C:\Users\Alex\venv\lib\site-packages\torrequest.py",line 41,in
    _launch_tor
        return launch_tor_with_config(   File "C:\Users\Alex\venv\lib\site-packages\stem\process.py",line 296,in launch_tor_with_config
        return launch_tor(tor_cmd,args,torrc_path,completion_percent,init_msg_handler,timeout,take_ownership)   File "C:\Users\Alex\venv\lib\site-packages\stem\process.py",line 103,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?
    
    Process finished with exit code 1

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

依赖报错 idea导入项目后依赖报错,解决方案:https://blog....
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下...
错误1:gradle项目控制台输出为乱码 # 解决方案:https://bl...
错误还原:在查询的过程中,传入的workType为0时,该条件不起...
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct...