Pycharm uses Anaconda's base environment

  1. Find the Python interpreter setting location: File -> Settings -> Project: Project name -> Python Interpreter -> Show All…
    Screenshots
  • The base environment has been set up in the picture here. Generally, you don't pay attention when you just create the project. A virtual environment named project name will be created.
  1. In the interpreter list that pops up, select Create Interpreter, as shown in the following figure:
    Screenshot 2
  • You can check Make available to all projects to facilitate other projects.
  • Then you can choose to switch the existing environment yourself.
  1. The important thing is that the base environment of Anaconda is not in the envs folder, but the root directory of Anaconda. The interpreter for selecting the base environment is as follows:
    Screenshots
  2. Then all the way OK.

Guess you like

Origin blog.csdn.net/zsq8187/article/details/112628342