Conda环境及python版本升级:
配置conda环境(配置完后python版本对应升级)
https://zhuanlan.zhihu.com/p/64930395
Anaconda安装包 提取码:w2-s
链接:https://pan.baidu.com/s/143Uz5aV9sM90FjYhKIjoeA
只升级python为3.7.4
https://www.cnblogs.com/zhongyehai/p/10444074.html
Python-3.7.0.tgz软件包 提取码:;7w9
一些报错:👇👇👇
↓ yum提示“Cannot retrieve metalink for repository: epel/x86_64” ↓
https://www.fujieace.com/linux/epel-x86_64.html
zipimport.ZipImportError: can’t decompress data; zlib not available make: **
https://blog.csdn.net/qq_37960324/article/details/83537369
ModuleNotFoundError: No module named ‘_ctypes’ make: *** [install] 错误 1
https://blog.csdn.net/qq_39719589/article/details/85165772
ERROR: stevedore 1.32.0 has requirement six>=1.10.0, but you’ll have six 1.9
https://blog.csdn.net/weixin_43270713/article/details/105254981
pip is configured with locations that require TLS/SSL, however the…不可用
https://blog.csdn.net/wbj_code_life/article/details/97887891
配置mysql
防火墙
安装Django
https://www.jianshu.com/p/dd20591d3657
查看django安装目录: pip show django
运行django项目需要注意的几个点:
1- 运行时需要在后面加上端口号,例如
python3 manage.py runserver 0.0.0.0:8000 或者
python3 manage.py runserver 公网IP :8000
在cmd测试:telnet 内网IP 8000
2- 加载网页时不再是127.0.0.1:8000 ,而是
http:// 服务器的内网IP :8000
3- 要想别人能够通过公网IP访问你的服务器,需要给服务器配置白名单,关于如何配置白名单,我推荐的那三个服务器都有相应的安全组: