Can environment.yaml be added after the project has been created?

Hi all. I have created a new project but due to some issues with Conda it appears that PyCharm has not loaded environments.yaml correctly. Is there a way to configure conda with the yaml file after the fact? The help pages only mentioned the yaml file when creating new projects, and made no mention of what if you want to add a yaml file after the fact.

0

Hi, 

Unfortunately, after adding a project, PyCharm doesn't re-scan environment.yaml, but you can run:

conda env update --file environment.yml

The command should update the activated conda environment from the yml file. 

0

请先登录再写评论。