- 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.
- SPSS數據挖掘與案例分析應用實踐
- Vue 3移動Web開發與性能調優實戰
- Design Principles for Process:driven Architectures Using Oracle BPM and SOA Suite 12c
- Spring Boot開發與測試實戰
- The Data Visualization Workshop
- 利用Python進行數據分析(原書第3版)
- Python編程實戰
- Unity 2017 Mobile Game Development
- iPhone應用開發從入門到精通
- Scala編程(第5版)
- R Data Science Essentials
- C++程序設計教程
- 實驗編程:PsychoPy從入門到精通
- Mastering Object:Oriented Python(Second Edition)
- Puppet 5 Beginner's Guide(Third Edition)