Python3: Pycharm import virtual environment

1. Statement

The current content mainly records the configuration problems of the virtual environment that occurred during the migration of the project

  1. Existing pip virtual environment, and package it, and realize the operation of the imported environment
  2. Move the project to another place to work

2. The main steps

Insert picture description here

Insert picture description here

Insert picture description here
Insert picture description here
Choose the environment of existence here
Insert picture description here
Choose an environment

Insert picture description here
Note here is python.exe in the Script directory

Insert picture description here

In this way, even if the environment is packaged into a package, it can be executed and used everywhere

Guess you like

Origin blog.csdn.net/weixin_45492007/article/details/114729188