windows10下激活conda环境报错CommandNotFoundError: Your shell has not been properly configured to use conda
因为安装Anaconda是比较久以前的事情,安装了之后又没有用过,最近想用来机器学习,安装pytorch啥的,于是捡了回来。
首先查看了我电脑上的conda环境以及版本
conda info --env
然后查看了一下版本,创建了一个自己的conda环境(-n就是-name的意思,指定名字,后面就是自定义的名字),我没有指定python版本估计就是最新的吧,创建完毕之后,可以看到有提示信息提示你激活
conda -V
conda create -n myPytorch
但是当我按照它的命令激活的时候,提示CommandNotFoundError
CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
If your shell is Bash or a Bourne variant, enable conda for the current user with$ echo ". E:\Anaconda3/etc/profile.d/conda.sh" >> ~/.bashrcor, for all users, enable conda with$ sudo ln -s E:\Anaconda3/etc/profile.d/conda.sh /etc/profile.d/conda.shThe options above will permanently enable the 'conda' command, but they do NOT
put conda's base (root) environment on PATH. To do so, run$ conda activatein your terminal, or to put the base environment on PATH permanently, run$ echo "conda activate" >> ~/.bashrcPrevious to conda 4.4, the recommended way to activate conda was to modify PATH in
your ~/.bashrc file. You should manually remove the line that looks likeexport PATH="E:\Anaconda3/bin:$PATH"^^^ The above line should NO LONGER be in your ~/.bashrc file! ^^^
但是此时看了一下conda的环境中已经创建好了
搜索了一下,说是可能电脑上的conda的初始的base环境就没有激活,所以先输入activate激活并进入到base环境,在此环境下再去激活新创建的环境即可
发现前面有小括号代表了是什么样的环境
所以就可以开始后面的激活对应的pytorch环境啦
windows10下激活conda环境报错CommandNotFoundError: Your shell has not been properly configured to use conda相关推荐
- 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 ...
- conda deactivate报错CommandNotFoundError: Your shell has not been properly configured to use ‘conda de
这里写自定义目录标题 1.问题: 2.解决办法: (1)激活 anaconda 环境 (2)退出 anaconda 环境 1.问题: 当我们在ubuntu里面安装anconda以后,但是不能激活环境, ...
- conda activate激活环境报错CommandNotFoundError: Your shell has not been properly configured
win10下安装anaconda后,使用conda activate命令切换环境出现报错 C:\Windows\system32> conda activate testCommandNotFo ...
- vscode 报错:Your shell has not been properly configured to use ‘conda activate‘
vscode 在使用powershell激活python环境时会出现以下报错: @[TOC](这里写自定义目录标题) CommandNotFoundError: Your shell has not ...
- Vscode中报错 CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
首先明确一下问题,因为好像这个报错我在网上搜到可能会有一些不同的原因的引起,我的Vscode 在运行py文件时激活anaconda虚拟环境的报错信息如下图所示,如果你的报错和我一样的话,那说明能按我下 ...
- windows下anaconda环境激活报错CommandNotFoundError: Your shell has not been properly configured to use ‘con
解决办法 管理员打开cmd,输入activate即可(linux是source activate)
- 如何解决‘CommandNotFoundError: Your shell has not been properly configured to use ‘conda activate’错误
最近换了新电脑,更新到了Win11系统. 在Win11下使用Anaconda时遇到了'CommandNotFoundError: Your shell has not been properly co ...
- 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 deactivate‘. To init
CommandNotFoundError: Your shell has not been properly configured to use 'conda deactivate'. To init ...
最新文章
- AOS V1.0 发布,JavaEE 应用基础平台
- 网络协议档案之ICMP、Ping、Traceroute
- 从对话框中传递参数到视图类
- Windows内核实验003 再次回到中断
- 【pmcaff】苏杰:产品经理对技术做这些,就完蛋了
- mysql5.7.17解压版安装_Windows中 MySQL5.7.17解压版安装步骤
- php历史上的今天源码,代码获取历史上的今天发生的事_基础知识
- 京东ajax怎么用,使用Ajax、json实现京东购物车结算界面的数据交互实例
- 在 远程桌面 权限不足无法控制 UAC 提示时,可使用 计划任务 绕开系统的 UAC 提示...
- 新手找客户,牢记20句话
- 对WinForm的App.config文件进行加密
- linux mysql 客户端 服务端_MySQL客户端和服务器端工具集
- 安规的XY电容器件作用
- 泰坦尼克号 3D版 Titanic 3D (2012)
- 雪球结构定价与风险深度分析
- 005-电脑软件安装包20190408
- 穿越美丽秋色---黄草梁
- WIN7登陆界面去掉下面windows 7 旗舰版
- 移动端考勤签到 前端考勤签到界面
- 数学建模——多元分析、综合评价与决策
热门文章
- flask 返回图片
- 吃内存狂魔?微信官方工具来了:深度清理缓存
- 利用python从网络上爬取图片_一篇文章教会你利用Python网络爬虫抓取王者荣耀图片...
- 数据结构:八大常见数据结构
- c语言程序执行不了,为什么C语言程序中if和else后的语句执行不了?
- 2000-2020全要素生产率OP法+LP法+OLS和固定效应法三种方法合集含原始数据和计算过程Stata代码
- FPGA串口接收学习
- 数据备份:备份文件/文件夹怎么操作?
- gitee 上删除远程仓库
- java类型参数推断_Java泛型类型推断