项目场景:
记录从pypi官网直接下载包安装方式
问题描述
pip安装失败 read timed out或镜像网站无匹配版本
原因分析:
网速过慢或镜像网站版本更新不及时
解决方案:
登陆pypi官网下载所需文件
https://pypi.org/project/
对于.tar.gz文件,解压进入该文件夹
python setup.py build_ext --inplace
python setup.py build_ext install
对于whl文件,通过pip install whl包的地址来安装指定的whl文件
pip install ./tensorboard-2.11.0-py3-none-any.whl