1. 问题出现:

已安装anaconda并已添加其环境变量,测试在win+cmd中输入conda及相关conda activate命令等都是正常的,但当在vscode中run/debug工程py脚本时出现以下错误及提示:

2. 踩坑记录:

(1)根据提示运行conda init 相关shells后,一直也没啥作用,还是出现那个错误。

(2)根据网上资料重新检查anaconda的环境变量也没问题,因此束手无策。

3. 问题解决:

(1)win系统

最后,从这篇文章中https://blog.csdn.net/cskywit/article/details/99202520找到尝试办法并依据本身电脑的权限问题及相关提示解决了问题,步骤如下:

(1)通过Win10开始菜单进入Windows PowerShell(管理员)

(2)输入命令 set-ExecutionPolicy RemoteSigned ,如果出现以下内容并无其他提示的红色错误后,输入 Y 直接解决。

(3)因为我的电脑受到管理员账户的控制,权限有限,我根据输入步骤2中的红色提示信息后,输入以下命令行 Set-ExecutionPolicy -Scope CurrentUser ,然后在ExecutionPolicy:   参数值这个位置输入  RemoteSigned并最终也解决了问题。

当然了,如果自己电脑不受管制自己就是管理权限,就应该不需要步骤(3)这种。看自己的电脑的情况吧!

(2)ubuntu系统:

比较简单,重新激活一下环境即可,具体操作如下:

# 重新进入虚拟环境
source activate
# 退出虚拟环境
conda deactivate
最后,重新执行conda activate <env_name>,没有报错,成功进入该虚拟环境。

vscode CommandNotFoundError: Your shell has not been properly configured to use ‘conda activate‘.解决相关推荐

  1. 如何解决‘CommandNotFoundError: Your shell has not been properly configured to use ‘conda activate’错误

    最近换了新电脑,更新到了Win11系统. 在Win11下使用Anaconda时遇到了'CommandNotFoundError: Your shell has not been properly co ...

  2. 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 ...

  3. 报错:CommandNotFoundError: Your shell has not been properly configured to use ‘conda activate‘. 问题解决

    今天在VS code里跑一个小网络,想先切换conda环境,发现无法切换了,并提示报错为: PS E:\XXX> conda activate XXXXXCommandNotFoundError ...

  4. Vscode中报错 CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.

    首先明确一下问题,因为好像这个报错我在网上搜到可能会有一些不同的原因的引起,我的Vscode 在运行py文件时激活anaconda虚拟环境的报错信息如下图所示,如果你的报错和我一样的话,那说明能按我下 ...

  5. Pycharm中anaconda创建激活虚拟环境出现错误:Your shell has not been properly configured to use ‘conda activate‘.

    Pycharm中anaconda创建激活虚拟环境出现错误:Your shell has not been properly configured to use 'conda activate'. 前言 ...

  6. vscode 报错:Your shell has not been properly configured to use ‘conda activate‘

    vscode 在使用powershell激活python环境时会出现以下报错: @[TOC](这里写自定义目录标题) CommandNotFoundError: Your shell has not ...

  7. 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 ...

  8. windows10下激活conda环境报错CommandNotFoundError: Your shell has not been properly configured to use conda

    因为安装Anaconda是比较久以前的事情,安装了之后又没有用过,最近想用来机器学习,安装pytorch啥的,于是捡了回来. 首先查看了我电脑上的conda环境以及版本 conda info --en ...

  9. Your shell has not been properly configured to use 'conda activate'

    $ conda activate Python3.6 CommandNotFoundError: Your shell has not been properly configured to use ...

最新文章

  1. 超强后浪:14岁考上研究生,如今17岁的他或将成为全国最小的博士生!
  2. 810D - 如何写学术论文
  3. zookeeper web ui--gt;node-zk-browser安装
  4. csgo跳投指令_csgo跳投绑定指令
  5. c python boost.python_如何利用Boost.Python实现Python C/C++混合编程详解
  6. ubunt 文件permission denied问题的解决
  7. 计算机系统硬件基本组成
  8. oracle服务 ora_01033,Oracle ORA-01033 错误的解决办法
  9. 天下会 - Google系列之谷歌搜索引擎高级用法:使用搜索语法精确搜索
  10. 【正点原子Linux连载】第二十五章 语音识别项目 摘自【正点原子】I.MX6U嵌入式Qt开发指南V1.0.2
  11. 阿里云混合云重磅发布 全栈建云智能管云极致用云
  12. erase和remove
  13. laravel-excel 表格 文档翻译笔记
  14. UCOSIII-任务管理
  15. mac访达连接服务器后无法显示,mac在群晖nas上使用时间机器TimeMachine
  16. mysql中用于删除数据的是什么意思_从mysql中删除数据最安全的方法是什么? (PHP / MySQL的)...
  17. 2019-ICML-Towards Graph Pooling by Edge Contraction
  18. Python编程 深入浅出递归
  19. 三星sec.android.soagent,【图片】(原贴删)原不用ROOT禁用系统软件的方法,加详细教程。【note4吧】_百度贴吧...
  20. RS232的硬件流控:DCD DSR DTR RTS CTS

热门文章

  1. 百度地图申请KEY,定位和获取周边热点
  2. Windows中Perl命令的安装
  3. 【Docker之Swarm详细讲解Swarm集群搭建管理节点工作节点Raft一致性协议overlay网络Docker结合Swarm部署WordPress个人博客实战】
  4. 全国 省市区 经纬度 (XML格式)
  5. 百度搜索稳定性问题分析的故事(上)
  6. python 遍历目录
  7. [$injector:unpr] Unknown provider:--angular.module()函数解答
  8. [PaddleSeg 源码阅读] PaddleSeg计算 mIoU
  9. Java枚举是什么?关于Java枚举的一些理解
  10. matlab 序列对称,共轭对称序列.PPT