Flask Documentation (1.1.x)Fedora $ sudo yum install python-virtualenv # Arch $ sudo pacman -S python-virtualenv If you are on Mac OS X or Windows, download get-pip.py [https://bootstrap.pypa.io/get- pip.py], then: $ sudo python2 You can leave it running and just reload the browser page as you follow the tutorial. For Linux and Mac: $ export FLASK_APP=flaskr $ export FLASK_ENV=development $ flask run For Windows cmd, use set instead FLASK_APP environment variable is used to specify how to load the application. Unix Bash (Linux, Mac, etc.): $ export FLASK_APP=hello $ flask run Windows CMD: > set FLASK_APP=hello > flask run Windows0 码力 | 428 页 | 895.98 KB | 1 年前3
Flask Documentation (1.1.x)Fedora $ sudo yum install python-virtualenv # Arch $ sudo pacman -S python-virtualenv If you are on Mac OS X or Windows, download get-pip.py, then: $ sudo python2 Downloads/get-pip.py $ sudo python2 -m You can leave it running and just reload the browser page as you follow the tutorial. For Linux and Mac: $ export FLASK_APP=flaskr $ export FLASK_ENV=development $ flask run For Windows cmd, use set instead FLASK_APP environment variable is used to specify how to load the application. Unix Bash (Linux, Mac, etc.): $ export FLASK_APP=hello $ flask run Windows CMD: > set FLASK_APP=hello > flask run Windows0 码力 | 291 页 | 1.25 MB | 1 年前3
共 2 条
- 1
相关搜索词













