python - 找不到满足要求的版本 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
其他一些信息:
操作系统:Windows 7,Python:3.7.2,pip:18.1
使用的命令: pip install python-statemachine==0.7.1
坐在代理后面
解决方案
来自谷歌搜索结果。我没有代理,所以我无法确认这是否有效。
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>
推荐阅读
- python - 带有 python 3.5.6 的 Tensorflow 1.10(InvalidArgumentError:您必须使用 dtype float 为占位符张量“input_8/InputX”提供一个值)
- php - 为什么不能调用actiondelete?
- android - 如何通过 adb 输入触摸屏滑动来绘制图案?
- optaplanner - 在 OptaPlanner 中生成基准测试报告期间出现 ArrayIndexOutOfBoundsException
- javascript - 对象方法引用对象属性的两种方式之间的区别
- java - 无法从 Consul 加载 logback.xml
- android - 将自定义字体应用到 editText
- html - 如何计算加载 url 的延迟并使用 VBA 重新开始加载行中的下一个 URL
- android - 不想将不透明度传递给android中的字体
- javascript - Stripe 自定义支付表单实现