Changing the interpreter for a project
One trick I employ when I’m working on a project that’s been ongoing for 6 months or longer is to create a new virtual environment with fully updated packages. This way, I can test the program with updated dependencies without corrupting my production-ready virtual environment. We’ll cover package management a little later in this chapter. For now, I want to show you where the setting for your project’s interpreter exists independently of the project creation process. I find this to be a little bit non-intuitive. It’s in Settings. The same Settings option you use to configure the IDE globally across all projects is used to set project-specific settings such as the interpreter settings.
Regardless of your reason, it is possible to change the interpreter, and by extension the virtual environment used in your project. You’ll find the project settings by clicking the gear icon in the top-left corner of...