Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing pygame for python3 in mac using anaconda

I am trying to install pygame for python 3 and get the error: conda install -c cogsci pygame Solving environment: failed

UnsatisfiableError: The following specifications were found to be in 
conflict:
  - pygame
  - xlwt
 Use "conda info <package>" to see the dependencies for each package.

Tried to install xlwt again but nothing change :

conda install xlwt
Solving environment: 
done 
All requested packages already installed.

Any idea how to install it?

Thanks

like image 872
okuoub Avatar asked Mar 14 '26 03:03

okuoub


1 Answers

The UnsatisfiableError means that the two packages listed cannot be installed in the same environment. You need to create a new environment to install pygame:

conda create -n pygameenv -c cogsci pygame
like image 121
darthbith Avatar answered Mar 16 '26 21:03

darthbith



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!