gpt4 book ai didi

python - 在 Tails 上使用 python 包管理器时 Torsocks 连接被拒绝错误

转载 作者:太空宇宙 更新时间:2023-11-04 11:46:07 27 4
gpt4 key购买 nike

我是 Tails Linux 的新手,我在通过 torsocks 安装应用程序时遇到了一些问题。

在这个例子中,我通过 apt-get 安装了 python3-pip,一切正常,但是当我运行 python3 -m pip install "something" 时,我得到了错误如:

PERROR Torsocks socks5 libc connection refused.

我已经尝试使用 torify、torsocks 运行命令,将 tor 端口更改为 9051 和 9151,在命令中使用 --proxy 但没有任何效果。

它包括 CURL 等命令

我们如何解决这个问题?

最佳答案

来自tails文档:

Packages that use the network need to be configured to go through Tor. They are otherwise blocked from accessing the network.

默认情况下,pip包管理器不会通过 socks 代理发出请求,因此您必须手动路由其连接。

我建议使用 proxychains . (可以在 here 中找到安装它的指南)

安装完成后,只需运行 proxychains pip install <package name>

关于python - 在 Tails 上使用 python 包管理器时 Torsocks 连接被拒绝错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57715016/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com