python
落叶惊雷
做一个不秃顶的程序员
展开
-
更改Ubuntu默认python版本的两种方法
1.使用 ls 命令来查看你的系统中都有那些 Python 的二进制文件可供使用 leitao@ubuntu:~$ ls /usr/bin/python* /usr/bin/python /usr/bin/python2.7 /usr/bin/python3.5 /usr/bin/python3m /usr/bin/python2 /usr/bin/python3 /usr/bin/python3.5m 2.查看默认的 Python 版本信息 leitao@ubuntu:~$ pytho原创 2020-12-08 11:23:15 · 224 阅读 · 0 评论 -
Linux搭建flask环境
0.什么是flask框架 一句话:Flask 是一个微型的 Python 开发的 Web 框架 1.使用python3.5 切换版本到3.5 。可以查看如何切换版本的笔记 2.创建项目 mkdir codeProject python -m venv venv 如果上面的命令遇到问题说: available. On Debian/Ubuntu systems, you need to install the python3-venv package using the following comm原创 2020-12-08 11:22:09 · 765 阅读 · 0 评论