- 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.
- SoapUI Cookbook
- Mastering C# Concurrency
- Corona SDK Mobile Game Development:Beginner's Guide(Second Edition)
- PrimeFaces Blueprints
- Lift Application Development Cookbook
- QPanda量子計(jì)算編程
- Photoshop智能手機(jī)APP界面設(shè)計(jì)
- SEO教程:搜索引擎優(yōu)化入門(mén)與進(jìn)階(第3版)
- Python應(yīng)用開(kāi)發(fā)技術(shù)
- 算法精解:C語(yǔ)言描述
- 零基礎(chǔ)學(xué)Java(第5版)
- Mastering JavaScript Promises
- HTML5/CSS3/JavaScript技術(shù)大全
- Java Web 從入門(mén)到項(xiàng)目實(shí)踐(超值版)
- Java Web開(kāi)發(fā)任務(wù)教程