anaconda 和pycharm_jetbrainspycharm

后端 (6) 2024-04-04 17:12

Hi,大家好,我是编程小6,很荣幸遇见你,我把这些年在开发过程中遇到的问题或想法写出来,今天说一说anaconda 和pycharm_jetbrainspycharm,希望能够帮助你!!!。
Configure a conda virtual environment

Create a conda environment based on environment.yml

  1. Do one of the following:

    • Go to File | Open.

    • On the Welcome Screen, click Open.

  2. Browse for the directory which contains your source files and the environment.yml file, and then click Open (on Mac) or OK (on Windows):

    anaconda 和pycharm_jetbrainspycharm_https://bianchenghao6.com/blog_后端_第1张
  3. If you didn't create a project and configure a Python interpreter in that directory before, PyCharm suggests creating a conda environment:

    anaconda 和pycharm_jetbrainspycharm_https://bianchenghao6.com/blog_后端_第2张
  4. Keep the suggested options, or specify an alternative Conda executable. Click OK to complete the task.

Once you click OK, PyCharm creates an environment and installs all the required packages.

Note that if you ignore a suggestion to create a Conda environment, PyCharm won't create a Python interpreter for your project. So, any time when you open a .py file, you'll see the warning with the options for configuring a project interpreter:

anaconda 和pycharm_jetbrainspycharm_https://bianchenghao6.com/blog_后端_第3张

今天的分享到此就结束了,感谢您的阅读,如果确实帮到您,您可以动动手指转发给其他人。