python3+pycharam+mysql配置django环境(1)

1.创建项目在这里插入图片描述
在这里插入图片描述
使用Terminal命令行:
在这里插入图片描述
查看django的官网:

https://www.djangoproject.com/

在这里插入图片描述
点击documentation
在这里插入图片描述
进入
在这里插入图片描述
这里官方提供翻译
在这里插入图片描述
点击zh-hans获取翻译过的文档
在这里插入图片描述

我们假定你已经阅读了 安装 Django。你能知道 Django 已被安装,且安装的是哪个版本,通过在命令提示行输入命令(由 $ 前缀)。

$ python3 -m django --version

在这里插入图片描述
这里显示没有安装
在这里插入图片描述
报错原因:没有指定国内源
国内源:

(1)阿里云 http://mirrors.aliyun.com/pypi/simple/
(2)豆瓣 http://pypi.douban.com/simple/
(3)清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/
(4)中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/
(5)华中科技大学http://pypi.hustunique.com/
pip3 install django -i  https://pypi.tuna.tsinghua.edu.cn/simple/

在这里插入图片描述
安装成功

查看django版本
在这里插入图片描述

python3 -m django --version
使用pip list查看第三方包的版本号

在这里插入图片描述
pip命令介绍

在这里插入图片描述

おすすめ

転載: blog.csdn.net/qq_39162487/article/details/105020594