Gen-AI Developer Classroom notes 09/Oct/2025

Virtual environment creation using pip

  • Virtual environments help in creating project specific environments
  • The basic command to create a virtual environment is
python -m venv <folder>
  • to activate virtual environment

    • windows <folder>\Scripts\activate
    • mac/linux source <folder>/bin/activate
      Preview
  • pip is the package manager of python

pip install <package-name>
  • When we share our code (commit code into repos) we will not include virtual environments
  • To maintain list of packages used we will be creating a requirements.txt file. Inside the activated environment
pip freeze > requirements.txt

  • once requirements.txt is available installing the dependencies can be done using pip install -r requirements.txt

Date Time Handling in python

  • Refer Here for date time tutorial
  • Basic date and time handling
  • Dealing with timezones
  • Formatting date time
  • Calculating date time difference or delta
  • strftime
  • Datetime differences
  • Zoneinfo
  • Refer Here for Notebook

Exercise

  • Explore random and uuid

By continuous learner

enthusiastic technology learner

Leave a Reply

Discover more from Direct AI Powered By Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading