遇到问题
最近调试PaddlePaddle调试语音转写及TTS功能。Paddle需要安装要求pip版本为20.2.2或更高版本。还需要安装PyHamcrest。
但是目前访问pip的官网非常的慢,更新几乎完成不了。
采用python -m ensurepip,但是报如下错误:
twisted 18.7.0 requires PyHamcrest>=1.9.0, which is not installed
解决方法:
采用pip install pip -U,解决pip版本升级问题
[root@system-2-new bin]# pip install pip -U
Collecting pip
Downloading https://files.pythonhosted.org/packages/6a/df/a6ef77a6574781a668791419ffe366c8acd1c3cf4709d210cb53cd5ce1c2/pip-22.0.3-py3-none-any.whl (2.1MB)
100% |████████████████████████████████| 2.1MB 12.4MB/s
twisted 18.7.0 requires PyHamcrest>=1.9.0, which is not installed.
Installing collected packages: pip
Found existing installation