Can't install Pygame using conda - python

I was trying to install Pygame module using conda.
I used this command:
conda install pygame
It gave me the following error:
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
PackagesNotFoundError: The following packages are not available from current channels:
- pygame
Current channels:
- https://repo.anaconda.com/pkgs/main/win-64
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/r/win-64
- https://repo.anaconda.com/pkgs/r/noarch
- https://repo.anaconda.com/pkgs/msys2/win-64
- https://repo.anaconda.com/pkgs/msys2/noarch
To search for alternate channels that may provide the conda package you're
looking for, navigate to
https://anaconda.org
and use the search bar at the top of the page.
Then I used the following command:
conda install -c cogsci pygame
Output:
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: \
Found conflicts! Looking for incompatible packages.
This can take several minutes. Press CTRL-C to abort.
Examining python=3.7: 100%|██████████████████████████████████████████████████████████████| 2/2 [00:00<00:00, 11.12it/s]-failed
UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:
Specifications:
- pygame -> python[version='2.7.*|3.5.*']
Your python: python=3.7
If python is on the left-most side of the chain, that's the version you've asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to. Note that conda will not
change your python version to a different minor version unless you explicitly specify
that.
I have installed different modules using conda install like tensorflow, numpy, pandas,matplotlib and they are all working but it is giving me an error in pygame.
How do I fix it and install Pygame?

The pygame package at cogsci is 4 years old and only compatible with python2.7. If you want the latest version use pip install pygame. Personnally I use the conda package at evindunn which is only available for linux-64

Related

my python3.10 on anaconda mac can't install python-binance

My anaconda base(root) is using python3.9, I want a new version, so I installed a new virtual environment with python3.10. Then I use"conda install -c conda-forge python-binance" to get the python-binance, but get error like below.
conda install -c conda-forge python-binance
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: |
Found conflicts! Looking for incompatible packages.
This can take several minutes. Press CTRL-C to abort.
failed
UnsatisfiableError: The following specifications were found to be incompatible with each other:
Output in format: Requested package -> Available versions
I have tried all the solutions that included in this link:https://exerror.com/solving-environment-failed-with-initial-frozen-solve-retrying-with-flexible-solve but all failed. So could anyone tell me what should I do to solve it?
I think this package only works for python 3.5, 3.6, 3.7 as stated in here.
So I would suggest you to downgrade your python version to be compatible with this library!

pip install -c dglteam dgl failed

I saw from another thread that current channels could affect it. I would like to install dgl 0.4.3. and pip commands or install from environment files have failed. How can I get it installed? Below is the error log. Many thanks.
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
PackagesNotFoundError: The following packages are not available from current channels:
dgl
Current channels:
https://conda.anaconda.org/dglteam/osx-arm64
https://conda.anaconda.org/dglteam/noarch
https://conda.anaconda.org/conda-forge/osx-arm64
https://conda.anaconda.org/conda-forge/noarch
To search for alternate channels that may provide the conda package you're
looking for, navigate to
https://anaconda.org
and use the search bar at the top of the page.
Here are the platforms the dglteam Conda channel builds for:
Currently, this does not show osx-arm64, which is what the errors indicate OP is on. Instead, either emulate the osx-64 platform with Rosetta 2 or run in a container (e.g., https://hub.docker.com/u/dgllib).

unable to install tensorflow: PackagesNotFoundError: The following packages are not available from current channels

Im using anaconda, I created an enviroment called proyecto, then after activating it I wrote "conda install tensorflow" and this was the result:
(proyecto) C:\Users\min2>conda install tensorflow
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
PackagesNotFoundError: The following packages are not available from current channels:
tensorflow
Current channels:
https://repo.anaconda.com/pkgs/main/win-32
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/r/win-32
https://repo.anaconda.com/pkgs/r/noarch
https://repo.anaconda.com/pkgs/msys2/win-32
https://repo.anaconda.com/pkgs/msys2/noarch
To search for alternate channels that may provide the conda package you're
looking for, navigate to
https://anaconda.org
and use the search bar at the top of the page.
I have no idea whats going on because I use to have tensorflow on this PC. I've seen similar problems but none of them helped me.
As mentioned by #drop90prog, After installing x64 version it works why because
Tensorflow is tested and supported on the 64-bit Windows system.
Refer the Tensorflow portal for more information.

Conda Installation Fails for PySoundFIle

I'm trying to understand why my conda installation of pysoundfile via the following command fails
conda install -n condaenv -c conda-forge pysoundfile
The error message seems to complain about a missing comparability between the required python version and my installed version. But as far as I understand, the version I have in my conda environment is listed and should be supported, right? This is the error message:
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: \
Found conflicts! Looking for incompatible packages.
This can take several minutes. Press CTRL-C to abort.|
Examining python=3.7: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00, 16.26it/s]\failed
UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:
Specifications:
- pysoundfile=0.10.2 -> python[version='2.7.*|3.5.*|3.6.*|3.6.9|>=2.7,<2.8.0a0|>=3.8,<3.9.0a0|>=3.7,<3.8.0a0|>=3.6,<3.7.0a0|>=3.5,<3.6.0a0|3.4.*',build=0_73_pypy]
Your python: python=3.7
If python is on the left-most side of the chain, that's the version you've asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to. Note that conda will not
change your python version to a different minor version unless you explicitly specify
that.
The following specifications were found to be incompatible with your CUDA driver:
- feature:/win-64::__cuda==11.0=0
Your installed CUDA driver is: 11.0
I assume the warning about my cuda driver is a secondary issue that doesn't have anything to do with the pysoundfile installation. Does sombody know what's going on here and how I might bypass the issue?
I was able to replicate this error with conda and python 3.7.
pip install pysoundfile works just fine if you want to install soundfile.

Having Trouble Installing Pillow in PyCharm using Anaconda enviroment

I am trying to install pillow for a project I am doing using PyCharm and Anaconda and having some trouble... Basically, when I try to install pillow in my anaconda environment it says that pillow is already downloaded. However, when I am running code in PyCharm it says that pillow is not installed and asks me if I would like to install it. I click install package and this is the error I get:
Collecting package metadata (current_repodata.json): ...working... done
Solving environment: ...working... failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working... failed with initial frozen solve. Retrying with flexible solve.
PackagesNotFoundError: The following packages are not available from current channels:
- pil
Current channels:
- https://repo.anaconda.com/pkgs/main/win-64
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/r/win-64
- https://repo.anaconda.com/pkgs/r/noarch
- https://repo.anaconda.com/pkgs/msys2/win-64
- https://repo.anaconda.com/pkgs/msys2/noarch
- https://conda.anaconda.org/conda-forge/win-64
- https://conda.anaconda.org/conda-forge/noarch
- https://conda.anaconda.org/sunpy/win-64
- https://conda.anaconda.org/sunpy/noarch
- https://conda.anaconda.org/cctbx/win-64
- https://conda.anaconda.org/cctbx/noarch
To search for alternate channels that may provide the conda package you're
looking for, navigate to
https://anaconda.org
and use the search bar at the top of the page.
I have tried using different channels using:
conda config --append channels (whatever channel)
The channels I have tried using are sunpy and cctbx
I am a bit confused with this so any help is greatly appreciated. Thanks!
Turns out I just need to use pillow instead of pil. Seems like a simple little mistake but dang... really goofed me up.

Categories

Resources