首页 > 解决方案 > 找不到满足要求的版本 python-statemachine==0.7.0

问题描述

我正在尝试在 python 中实现状态机。我发现 python-statemachine 包使它更容易做到。但是,尝试安装它会出现以下错误:

Collecting python-statemachine

Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000000000383ED30>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it')': /simple/python-statemachine/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000000000383EB38>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it')': /simple/python-statemachine/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000000000383EC18>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it')': /simple/python-statemachine/
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000000000383EBA8>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it')': /simple/python-statemachine/
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x000000000383E550>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it')': /simple/python-statemachine/
Could not find a version that satisfies the requirement python-statemachine (from versions: )
No matching distribution found for python-statemachine

其他一些信息:

标签: python

解决方案


来自谷歌搜索结果。我没有代理,所以我无法确认这是否有效。

pip
The proxy needs to be provided on the command line each time you run pip, as follows:

pip install --proxy http://proxyserver:port <package>
If you need authentication:

pip install --proxy http://user:password@proxyserver:port <package>

推荐阅读