试了好多方法,终于
pip3 install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ --ignore-installed
但是还有2个包没更新,
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. twisted 18.7.0 requires PyHamcrest>=1.9.0, which is not installed. jupyterlab-server 1.0.0 requires jsonschema>=3.0.1, but you have jsonschema 2.6.0 which is incompatible.
用pip install 包名 安装完成