- 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.
- Learning Single:page Web Application Development
- 大學計算機基礎(第二版)
- 高手是如何做產(chǎn)品設計的(全2冊)
- DevOps with Kubernetes
- PHP 從入門到項目實踐(超值版)
- Python深度學習
- 數(shù)據(jù)庫系統(tǒng)原理及MySQL應用教程
- PHP網(wǎng)絡編程學習筆記
- Python Data Analysis(Second Edition)
- Rust Essentials(Second Edition)
- 自然語言處理Python進階
- Getting Started with Laravel 4
- Raspberry Pi Home Automation with Arduino(Second Edition)
- Cybersecurity Attacks:Red Team Strategies
- HTML5+CSS3+jQuery Mobile APP與移動網(wǎng)站設計從入門到精通