- 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.
- Moodle Administration Essentials
- Python Deep Learning
- Learning Python Design Patterns(Second Edition)
- 秒懂設計模式
- Microsoft Dynamics GP 2013 Reporting, Second Edition
- 數據結構與算法分析(C++語言版)
- Python+Tableau數據可視化之美
- 分布式數據庫原理、架構與實踐
- Python Web自動化測試設計與實現
- R的極客理想:量化投資篇
- Modular Programming with JavaScript
- Python程序設計
- Spring 5.0 Cookbook
- XML實用教程
- AngularJS Test:driven Development