Development environment to build python-flask

ubuntu environment

1. Update the system software source:

Not by updating the system software source, it may be impossible apt-get installto install the software we need to use:

$ sudo apt-get update 
$ sudo apt-get upgrade

2. Develop tools:

python:

After the installation can be done through python3the command line to enter operation If you want python xxx.pyto run the .pyfile, you can add another soft links:

$ sudo apt-get install python3.5 python3.5-dev

Mysql:

$ sudo apt-get install mysql-server mysql-client

pip :( I remember after this python installed automatically installed, do not know why the author here to install separately?)

Installation pythonpackage management tools:

$ sudo apt-get install python-pip

3. Create a virtual environment

Installation virtualenv:

3. dependent libraries:

requirements.txtText contains third-party packages required for the project:

Referring to this document, written in great detail:

https://www.centos.bz/2018/05/centos-7-4-%E5%AE%89%E8%A3%85python3%E5%8F%8A%E8%99%9A%E6%8B%9F%E7%8E%AF%E5%A2%83/

 

Article Source:

https://www.showdoc.cc/page/46561890643919

Guess you like

Origin www.cnblogs.com/kaerxifa/p/11527938.html