- Building Web Applications with Flask
- Italo Maia
- 159字
- 2021-07-16 14:13:03
Setting up a virtual environment
A virtual environment is the way Python isolates full package environments from one another. This means you can easily manage dependencies. Imagine you want to define the minimum necessary packages for a project; a virtual environment would be perfect to let you test and export the list of needed packages. We will discuss it later on. Now, create a new terminal pressing Ctrl + Shift + T on your keyboard and create our hello world environment like this:
mkvirtualenv hello pip install flask
The first line creates our environment with the name "hello". You will also automatically load that environment into the current terminal. You can deactivate your virtual environment by typing deactivate
and you can load it again with the following command:
workon hello # substitute hello with the desired environment name if needed
The second line tells pip to install the Flask package in the current virtual environment, hello
in this case.
- 騰訊iOS測試實踐
- Java應(yīng)用開發(fā)與實踐
- C語言程序設(shè)計教程(第2版)
- 深入淺出DPDK
- MATLAB實用教程
- C語言程序設(shè)計案例精粹
- JavaScript入門經(jīng)典
- 運用后端技術(shù)處理業(yè)務(wù)邏輯(藍橋杯軟件大賽培訓(xùn)教材-Java方向)
- 基于Struts、Hibernate、Spring架構(gòu)的Web應(yīng)用開發(fā)
- PLC應(yīng)用技術(shù)(三菱FX2N系列)
- C/C++程序員面試指南
- 基于ARM Cortex-M4F內(nèi)核的MSP432 MCU開發(fā)實踐
- 詳解MATLAB圖形繪制技術(shù)
- 用案例學(xué)Java Web整合開發(fā)
- 軟件工程基礎(chǔ)與實訓(xùn)教程