1.确保pip 安装好,以前帖子发过。
2.pip install django==4.2
或
配置清华镜像源
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
pip config set global.trusted-host pypi.tuna.tsinghua.edu.cn
安装
pip install django==4.2.
显示Successfully installed asgiref-3.8.1 django-4.2 sqlparse-0.5.0 tzdata-2024.1,表示安装成功,
3.查看django信息
pip show django