course
Python: Setting up the environment
6 students
Course updated
06 September 2023
Included in the course
16 lessons (video or text)
Assistance in Discussions on the website
Access to other courses of the our platform
What you'll learn
- Install Python in the operating system
- Set up a local environment to run Python code
- Run scripts, modules, and packages
Description
In this course, you will learn how to set up an environment. You will learn about virtual environments, the standard pip package manager, and the alternative Poetry manager. You will learn how to create conflict-free dependencies for your programs, run programs locally, and create install files with entry points. You will learn how to create a project and link libraries to it. The knowledge you gain from this course will help you organize your local environment intelligently and use best practices for managing your code. This course is a must for anyone who wants to learn how to program in Python. To make learning easier, you should know the basics of the command line and the Git version control system.
Course program
Estimated time: 4 hours
-
6
Setuptools, distutils, and pip modules
Discussing the distutils library, the Setuptools package, and the pip installer -
8
Alternative package sources
Learning how to use pip to install packages from alternative sources -
9
Virtual environments
Learning to avoid interdependencies and clutter in the global environment -
11
Running modules and packages
Learning how to design modules and packages that can be imported and run as scripts -
12
Accessibily for working with Python
Learn about tools that improve the development, packaging, and deployment -
13
Getting started with Poetry
Learning how to install and set up Poetry to create your first project -
14
Poetry and dependency management
Learning how to add dependencies to a project and run developer tools -
15
Poetry and scripts
Learning how to describe the points of entry into the program in Poetry projects -
16
Building a package distribution using Poetry
Building project distributions and learning to install them with pip -
17
Additional resources
Some materials the Hexlet team have picked up. This will give you a more in-depth understanding of the topic