pythonspyder安装失败_python spyder conda安装失败

在尝试使用Anaconda Spyder的Python控制台更新或安装conda包时遇到问题。错误提示表明需要在本地命令行环境中运行conda命令。用户在cmd中尝试更新conda和pandas,但操作未成功。解决方案是直接在命令提示符(cmd.exe)中执行conda更新命令。
摘要由CSDN通过智能技术生成

I am new to Python, now I am using Anaconda Spyder as my main Python distribution. I am learning how to use conda to install/update packages. When I read relevant books and searched online, it seemed that All I need to do is to type "conda install " or type "conda update ". When I typed so in my spyder console, I found error message as follows. Where am I wrong here? Thanks for help.

Someone suggested me to run it in cmd not in Spyder. Here is my output when I run it in cmd. The update of my pandas also fails in cmd line.

解决方案

You are trying to use a Python console to update your conda distribution when you have to update it from your local console.

I guess you're using Windows, just open the command prompt (cmd.exe), and from there update the conda distribution with the commands you already know:

conda update conda

conda update anaconda

conda install

Update:

Conda commands have to be used directly in the command prompt:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值