Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

python spyder conda install failure

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.

enter image description here

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. enter image description here

like image 968
Hao Zhang Avatar asked May 11 '26 17:05

Hao Zhang


1 Answers

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

Update:

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

enter image description here

like image 72
Javitronxo Avatar answered May 14 '26 07:05

Javitronxo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!