报错:CommandNotFoundError: Your shell has not been properly configured to use ‘conda activate‘. 问题解决
今天在VS code里跑一个小网络,想先切换conda环境,发现无法切换了,并提示报错为:
PS E:\XXX> conda activate XXXXXCommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
If using 'conda activate' from a batch script, change your
invocation to 'CALL conda.bat activate'.To initialize your shell, run$ conda init <SHELL_NAME>Currently supported shells are:- bash- cmd.exe- fish- tcsh- xonsh- zsh- powershellSee 'conda init --help' for more information and options.IMPORTANT: You may need to close and restart your shell after running 'conda init'.
查了下原因,大概意思是初次使用Anaconda时,没有预先对命令行进行预载。解决办法非常简单,在上文报错的提示中也说明了,根据提示运行对应的命令即可
conda init {TERMINAL_TYPE}
即,在windows下,终端中输入
conda init cmd.exe
在linux下,终端中输入
conda init bash
在VScode中,我使用了powershell,运行结束后重启终端应该就能解决
如果还是不行,就参考这个:VSCode激活conda虚拟环境_丸子爱学习!的博客-CSDN博客_vscode激活虚拟环境
报错:CommandNotFoundError: Your shell has not been properly configured to use ‘conda activate‘. 问题解决相关推荐
- Conda activate报错 CommandNotFoundError: Your shell has not been properly configured to use ‘conda
Conda activate报错 CommandNotFoundError: Your shell has not been properly configured to use 'conda act ...
- windows10下激活conda环境报错CommandNotFoundError: Your shell has not been properly configured to use conda
因为安装Anaconda是比较久以前的事情,安装了之后又没有用过,最近想用来机器学习,安装pytorch啥的,于是捡了回来. 首先查看了我电脑上的conda环境以及版本 conda info --en ...
- vscode 报错:Your shell has not been properly configured to use ‘conda activate‘
vscode 在使用powershell激活python环境时会出现以下报错: @[TOC](这里写自定义目录标题) CommandNotFoundError: Your shell has not ...
- conda deactivate报错CommandNotFoundError: Your shell has not been properly configured to use ‘conda de
这里写自定义目录标题 1.问题: 2.解决办法: (1)激活 anaconda 环境 (2)退出 anaconda 环境 1.问题: 当我们在ubuntu里面安装anconda以后,但是不能激活环境, ...
- Vscode中报错 CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
首先明确一下问题,因为好像这个报错我在网上搜到可能会有一些不同的原因的引起,我的Vscode 在运行py文件时激活anaconda虚拟环境的报错信息如下图所示,如果你的报错和我一样的话,那说明能按我下 ...
- CommandNotFoundError: Your shell has not been properly configured to use ‘conda activate‘. To initia
@CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'. To initi ...
- 如何解决‘CommandNotFoundError: Your shell has not been properly configured to use ‘conda activate’错误
最近换了新电脑,更新到了Win11系统. 在Win11下使用Anaconda时遇到了'CommandNotFoundError: Your shell has not been properly co ...
- conda activate激活环境报错CommandNotFoundError: Your shell has not been properly configured
win10下安装anaconda后,使用conda activate命令切换环境出现报错 C:\Windows\system32> conda activate testCommandNotFo ...
- vscode CommandNotFoundError: Your shell has not been properly configured to use ‘conda activate‘.解决
1. 问题出现: 已安装anaconda并已添加其环境变量,测试在win+cmd中输入conda及相关conda activate命令等都是正常的,但当在vscode中run/debug工程py脚本时 ...
最新文章
- oracle 自治数据库 培训,Oracle数据库掌门人,Andrew Mendelsohn 谈自治数据库
- 开源资讯- Jeecg 在线聊天MQ插件发布
- android tmp目录权限不够,/tmp目录下执行脚本失败提示Permission denied
- Python中fastapi关于异常或者错误的处理
- 这本值得你认真一读的畅销书特价了
- ZABBIX 监控 JBOSS 7.1.1
- python3使用ddt框架进行外部传参
- 智力与联系能力的关系
- 超级计算机贝利,5年华为架构师1小时把SpringBoot项目并发提升了10倍,网友:牛掰...
- H3C交换机堆叠配置
- liteIDE配置gocode
- 行业寒冬,Android程序员前景一片灰暗?
- 服务器带宽打开网页很慢,为什么网速很快,但打开的网页速度却很慢?
- 有个程序媛上司是什么体验
- ​浅谈 Java 后端开发工程师腾讯面试经历分享总结
- 《Python编程快速上手——让繁琐工作自动化》第2版的中文版上市了
- GPRS模块功能简介(I)SGSN功能
- C4996:#(The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name:)
- java-线程的实现方式
- SpringBoot集成原生rocketmq-client
热门文章
- 大学溃败始于老实人吃亏
- 这 27 位,为什么能成为马斯克的“左膀”与“右臂”?
- python通过字符串来调用函数
- termux安装ubuntu18_TERMUX安装ubuntu并图形化
- inflate()引发NullPointerException
- C#获取指定文件夹下所有文件夹名称
- 哲学家们都干了些什么?
- 计算机应用基础 性考,最新国家开放大学《计算机应用基础》形考作业一答案.docx...
- 概率论常见的分布函数
- Normalization总结