python pip安装特定包,网络慢的问题

文件requirements.txt

httpx==0.24.0
Pillow==9.5.0
playwright==1.33.0
tenacity==8.2.2
tornado==6.3.2
PyExecJS==1.5.1
opencv-python==4.7.0.72
tortoise-orm[asyncmy]==0.19.3
aerich==0.7.2
numpy~=1.24.4
redis~=4.6.0
Pydantic==1.7

将文件放入任意一个目录下
cd 到该目录下执行

while read requirement; do pip3 install $requirement -i  https://pypi.mirrors.ustc.edu.cn/simple/ ; done < requirements.txt

你可能感兴趣的:(python,pip,开发语言)