.ProtocolError: ("Connection broken: ConnectionResetError(10054, '远程主机强迫关闭了一个现有的连接。', None, 10054, None)", ConnectionResetError(10054, '远程主机强迫关闭了一个现有的连接。', None, 10054, None))
pip install --default-timeout=1000 --upgrade --ignore-installed tensorflow -i https://pypi.tuna.tsinghua.edu.cn/simple/ --trusted-host pypi.tuna.tsinghua.edu.cn
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.
numba 0.56.2 requires setuptools<60, but you have setuptools 65.5.1 which is incompatible.
pip uninstall setuptools
pip install setuptools==41.1.0
再装tensorflow
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.
numba 0.56.2 requires setuptools<60, but you have setuptools 65.5.1 which is incompatible.
但是实际版本还是65
卸载再装
版本对了:
然后:
然后再show又变成了:
怀疑装tensorflow的命令会让setuptools的版本变成65
果然找到了:
然后发现其实已经有tensorflow,就算有报错,就算setuptools的版本是65
所以,pip就是装好了tensorflow,但出了一个报错说setuptools的版本是65不行,然后去降低版本后回来装tensorflow,装tensorflow又会自动把版本变成65,循环往复