找不到满足pythonstatemachine==0.7.0要求的版本

2024-06-01 10:03:24 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图用python实现一个状态机。我发现PythonStateMachine包使它变得容易一些。但是,尝试安装时会出现以下错误:

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

其他一些信息:

  • 操作系统:Windows 7、Python:3.7.2、pip:18.1

  • 使用的命令:pip install python statemachine==0.7.1

  • 坐在代理人后面


Tags: pipthenononereadstatusconnectconnection
1条回答
网友
1楼 · 发布于 2024-06-01 10:03:24

Google results。我没有代理,因此无法确认这是否有效

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>

相关问题 更多 >