2 Preparing for package development

 

This chapter covers

  • Managing virtual environments using venv
  • Isolating project dependencies using virtual environments
  • Managing virtual environment creation and activation using venv
  • Listing installed dependencies using pip

At the beginning of a project, you’re likely eager to get started and accomplish something tangible. This is understandable—building things and solving problems can be rewarding. But it’s valuable to move slowly at first so you can move quickly later and longer as a project matures. When you’re exploring a new technology or process, it can also be helpful to practice with it first so you can use it deftly. A bit of planning up front can go a long way toward your productivity and resulting morale. In this chapter, you’ll use asdf and venv to create a development environment for the package you’ll work on for the rest of this book.

Important

Before reading on, visit appendix A to install the tools you’ll need for this chapter.

2.1 Managing Python virtual environments

 
 
 
 

2.1.1 Creating virtual environments with venv

 
 
 

Summary

 
 
 
 
sitemap

Unable to load book!

The book could not be loaded.

(try again in a couple of minutes)

manning.com homepage