当前位置:网站首页>Anaconda replaces the default virtual environment

Anaconda replaces the default virtual environment

2022-08-09 07:33:00 qq_52217283

Modify \Scripts\activate.bat in the Anaconda installation directory

The following path:

D:\Anaconda3\Scripts\activate.bat

Open for text editing

Find this line of text and modify:

@CALL "%~dp0..\condabin\conda.bat" activate %*

In this line, change %* to the virtual environment you need to start by default, such as:

@CALL "%~dp0..\condabin\conda.bat" activate PyTorch)

Here, the default startup virtual environment is successfully switched to the PyTorch environment

原网站

版权声明
本文为[qq_52217283]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/221/202208090729485563.html