新建模块 python manage.py startapp xxx
生成requirements.txt 第一种:pipreqs . --encoding=utf8 --force 第二种:pip install -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt
常用镜像 清华:https://pypi.tuna.tsinghua.edu.cn/simple 阿里云:http://mirrors.aliyun.com/pypi/simple/ 中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/ 华中理工大学:http://pypi.hustunique.com/ 山东理工大学:http://pypi.sdutlinux.org/ 豆瓣:http://pypi.douban.com/simple/
安装 requirements.txt pip install -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt
启动 python manage.py runserver 0.0.0.0:9000
python manage.py makemigrations python manage.py migrate 当出现duplicate column name: ID 存在相同id,去到migrations 下删掉队对应记录
python 3.10 对应pandas 版本1.4.0
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。