win10下安装anaconda后,使用conda activate命令切换环境出现报错

C:\Windows\system32> conda activate testCommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
To initialize your shell, run$ conda init <SHELL_NAME>Currently supported shells are:- bash- 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自带的anaconda navigator或anaconda powershell prompt,anaconda prompt来进入环境,或输入

conda.bat activate “环境路径”,例如:conda.bat activate "D:\Anaconda3\envs\test"

方法二:

打开管理员power shell,修改执行策略,执行:get-ExecutionPolicy,回复Restricted,表示状态是禁止的

Restricted——默认的设置, 不允许任何script运行
AllSigned——只能运行经过数字证书签名的script
RemoteSigned——运行本地的script不需要数字签名,但是运行从网络上下载的script就必须要有数字签名
Unrestricted——允许所有的script运行

执行:set-ExecutionPolicy RemoteSigned即可

输入:conda init,C:\Users\xxx\Documents\WindowsPowerShell下会生成配置文件profile.ps1,重启power shell后,默认会进入conda的base环境,要恢复删除profile.ps1。最后根据个人情况,执行set-ExecutionPolicy Restricted策略改回Restricted。

conda activate激活环境报错CommandNotFoundError: Your shell has not been properly configured相关推荐

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

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

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

  3. conda deactivate报错CommandNotFoundError: Your shell has not been properly configured to use ‘conda de

    这里写自定义目录标题 1.问题: 2.解决办法: (1)激活 anaconda 环境 (2)退出 anaconda 环境 1.问题: 当我们在ubuntu里面安装anconda以后,但是不能激活环境, ...

  4. windows下anaconda环境激活报错CommandNotFoundError: Your shell has not been properly configured to use ‘con

    解决办法 管理员打开cmd,输入activate即可(linux是source activate)

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

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

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

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

  7. win10中conda activate激活环境出错的解决办法

    win10中conda activate激活环境出错的解决办法 报错原因 解决方法 今天在运行代码的时候出现了以下问题,报错 CommandNotFoundError: Your shell has ...

  8. Windows下Anaconda使用conda activate激活环境出错

    在Windows下使用conda激活虚拟环境时出现以下报错: CommandNotFoundError: Your shell has not been properly configured to ...

  9. anaconda激活python_Anaconda使用conda activate激活环境出错(待完全解决)2018-06-09

    问题 今天使用激活python36环境时出错 conda activate python36 出错log CommandNotFoundError: Your shell has not been p ...

最新文章

  1. 数据通信技术_华为数据通信创新峰会在长春圆满举行
  2. C/C++常见的预处理指令
  3. Elasticsearch7.X ILM索引生命周期管理(冷热分离)
  4. tips:Java基本数据类型大小比较
  5. Android:浏览器跳转
  6. 【Python】之glob库介绍
  7. 中by的用法_经常混淆的介词at、on、in、by用法细讲,收藏学习
  8. 苹果手机默认拍照比例_苹果手机拍照有什么技巧?这几个功能要知道,不然别说自己用苹果...
  9. 能让中年人放下面子赚到钱的副业
  10. golang 中strconv包用法
  11. C1083: 无法打开包括文件: “stdafx.h”: No such file or directory
  12. 【优化分配】基于matlab鱼群算法求解无线电功率分配优化问题【含Matlab源码 1523期】
  13. 【滑动窗口协议模拟】
  14. office365打开服务器文件出错,Microsoft Office 365个人版打开显示错误
  15. 第27天 LDT与库
  16. 几种常见的水下路由算法介绍
  17. python怎么隐藏输入法_打开和关闭输入法
  18. Verilog --状态机编码方式
  19. html学习阶段总结2
  20. 软件测试工程师书籍介绍(精华)

热门文章

  1. 大数据电商数仓实战v5.0 (尚硅谷)
  2. HTML5垃圾桶效果,Html轻松使用拖拽实现垃圾桶,代码带注释,包你能看懂
  3. 帮我从诗经中给小孩取名
  4. 【C语言玩转圣诞节】100行代码画出圣诞水晶球
  5. Hive查询特殊字段解决方案
  6. 什么是软件架构视图 4+1视图
  7. 序号47指标横向展示.xlsx_云南烟酒柜台展柜展示柜哪家好_尚式展示道具有限公司...
  8. python画卡通人物_用Python 绘制儿童卡通人物,一起过儿童节
  9. 2010再见,你好2011
  10. cadence画原理图的时候,元件PIN上出现黄色感叹号Object move not completed as this resulted in connectivity changes