GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - dusanpython66/Learn-Python-Programming-Third-Edition: Learn Python Programming 3E. Published by Packt

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

25 Commits
25 Commits

Folders and files

NameName
Last commit message
Last commit date
ch01
ch01
 
 
ch02
ch02
 
 
ch03
ch03
 
 
ch04
ch04
 
 
ch05
ch05
 
 
ch06
ch06
 
 
ch07
ch07
 
 
ch08
ch08
 
 
ch09
ch09
 
 
ch10
ch10
 
 
ch11
ch11
 
 
ch12
ch12
 
 
ch13
ch13
 
 
ch14
ch14
 
 
ch15
ch15
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

Get this product for $5

Packt is having its biggest sale of the year. Get this eBook or any other book, video, or course that you like just for $5 each

Buy now

Buy similar titles for just $5

Learn Python Programming 3rd Edition

Welcome to Learn Python Programming, 3rd Edition.

Here you can find the complete source code for this book. Every line of code you will find in the book is in this repository, plus all the code that we couldn't fit in the book.

Working on a chapter

We suggest you create a dedicated virtual environment for each chapter you wish to work on. Chapters that require third-party libraries will have a folder inside, called requirements.

First you will need to create a virtual environment. If you don't know what a virtual environment is, please read Chapter 1.

Let's now pretend you want to work on Chapter 12. First, change into the folder for Chapter 12 (it's called ch12):

$ cd ch12

Then, create a virtual environment. In this example the virtual environment will live inside the chapter's folder, but you can choose any other folder that might suit you better.

$ python3.9 -m venv .venv

We have given the virtual environment folder the name .venv. Feel free to choose any other name that you might want.


Note: the above procedure might fail in some of the chapter folders, due to the presence of files that aren't meant to be run. If that is the case, you should choose another folder where to place your virtual environment. You can create one within the chapter folder itself, or place the virtual environment outside of the chapter folder altogether.


Next step is to activate the virtual environment:

$ source  .venv/bin/activate

If you're on Windows, to activate your environment, you will need to run:

$ .venv\Scripts\activate

Next, if the requirements folder is present, change into it, and run the following command for each of the .txt files you will find in it. Normally there is only a requirements.txt file.

$ cd requirements
$ pip install -U -r requirements.txt
$ cd ..  # this brings you back to the root of the chapter

Once you have installed all requirements, you are ready to run the chapter's code. If a chapter needs extra work to be set up, you will find all the instructions you need in the chapter's text.

Note: Always remember to activate the virtual environment before you install third-party libraries.

Download a free PDF

If you have already purchased a print or Kindle version of this book, you can get a DRM-free PDF version at no cost.
Simply click on the link to claim your free PDF.

https://packt.link/free-ebook/9781801815093

About

Learn Python Programming 3E. Published by Packt

Resources

Readme
License
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.