2022-11-18 安装tensorflow

.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,循环往复

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容