conda设置PS1
时间: 2023-10-27 16:25:25 浏览: 282
要设置conda的PS1,可以按照以下步骤进行操作:
1. 打开VSCode并进入设置。可以通过按下`Ctrl + ,`快捷键或者点击顶部菜单栏的`文件`->`首选项`->`设置`来打开设置。
2. 在设置页面的搜索框中,搜索`@feature:terminal Profiles: Windows`,点击结果中的`在settings.json中编辑`链接。
3. 在`settings.json`文件中,可以看到其他终端的配置。在这里,可以新增一个终端配置来设置conda的PS1。
4. 新增配置的键值对应如下所示:
```
"Mini Conda":{
"source": "PowerShell",
"args": [
"-ExecutionPolicy",
"ByPass",
"-NoExit",
"-Command",
"&",
"D:\\miniconda\\shell\\condabin\\conda-hook.ps1",
"conda activate 'D:\\miniconda'"
],
"icon": "terminal-powershell"
}
```
这个配置使用了PowerShell作为终端,并执行了`conda activate`命令来激活miniconda环境。
5. 保存并关闭`settings.json`文件。
通过以上步骤,你就可以在VSCode终端中使用安装了miniconda的环境了。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [vscode+miniconda设置](https://blog.csdn.net/weixin_42968757/article/details/127378876)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [搜索引擎](https://download.csdn.net/download/weixin_42097369/15180309)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [【已解决,非抄袭】如何解决conda命令行提示符覆盖掉原来的路径?](https://blog.csdn.net/Yonggie/article/details/127247013)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文
相关推荐
![-](https://img-home.csdnimg.cn/images/20241231045053.png)
![-](https://img-home.csdnimg.cn/images/20241231045053.png)
![-](https://img-home.csdnimg.cn/images/20241231045053.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)