Create Python project
+++ +++
Create Python project
- For PyCharm then you can ignore this step
- For Visual Studio Code:
- Create new folder with
project-name
- Create virtual environment to isolate installed packages + python:
Go to
project name
then run the command# Create virtual environment python -m venv .venv # Activate (Windows) .\.venv\Scripts\activate # Activate (Mac) source ./.venv/Scripts/activate
- Create new folder with
Install required package
- After activating virtual environment, then we can install required packages by the command
pip install <PACKAGE-NAME>
- If we define the required package in the
requirements.txt
then we can runThepip install -r requirements.txt
requirement.txt
file like this:Flask gunicorn==20.1.0 Werkzeug==3.0.1 requests