When trying to upgrade my anaconda distribution I keep getting the following error:
Collecting package metadata (repodata.json): done
Solving environment: failed
PackagesNotFoundError: The following packages are not available from current channels:
- pkgs/free/win-64::anaconda==4.4.0=np112py36_0 -> bzip2==1.0.6=vc14_3
- pkgs/free/win-64::anaconda==4.4.0=np112py36_0 -> cryptography==1.8.1=py36_0
[loads of similarly cryptic packages names]
- pkgs/free/win-64::anaconda==4.4.0=np112py36_0 -> vs2015_runtime==14.0.25123=0
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
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.
This is raised no matter what or how I try to install/update:
It is raised both with conda update --all and conda update numpy or any other package I tried, so this should not be due to some specific package that is not in the channel.
It is even raised when I try to update anaconda itself by conda update -n root conda.
I have tried updating numpy from Anaconda navigator.
Because of this question I added conda-forge to my channels - to no avail.
Grateful for any help.
EDIT: I finally solved this by completely removing and reinstalling Anaconda3, but I still lack an understanding of what exactly has originally caused the problem.
Related
I'm trying to install datatable package through Anaconda with the following command:
conda install -c conda-forge datatable
It gave me 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:
- datatable
Current channels:
- https://conda.anaconda.org/conda-forge/win-64
- https://conda.anaconda.org/conda-forge/noarch
- 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.
I search datatable in anaconda.org, but seem like the channel that contain datatable is conda-forge.
So I blindly add some random channel to see if it work:
conda config --add channels keras
conda config --add channels pickle
conda config --add channels nltk
Now I can't even access to conda-forge
conda install -c conda-forge datatable
Collecting package metadata (current_repodata.json): failed
UnavailableInvalidChannel: HTTP 404 NOT FOUND for channel keras <https://conda.anaconda.org/keras>
The channel is not accessible or is invalid.
You will need to adjust your conda configuration to proceed.
Use `conda config --show channels` to view your configuration's current state,
and use `conda config --show-sources` to view config file locations.
conda config --show channels
channels:
- nltk
- pickle
- keras
- defaults
The package entries on Anaconda Cloud list what platforms for which a particular package is available, and datatable currently only has osx-64 and linux-64. If you would like the Conda Forge feedstock to build win-64 versions (OP's platform), then file an Issue requesting this, or add it to the recipe with a PR.
Otherwise, please do not randomly add channels to your configuration. Packages are not necessarily compatible across channels, so one needs to be very specific with what channels are added to configuration. Also, Anaconda Cloud lets anyone create channels, so you should be much more cautious about what channels are trustworthy. OP seems to be randomly adding channels based on common Python package names - that's not a thing! I recommend cleaning up your .condarc to remove those channels.
I am attempting to install CERNS ROOT in anaconda, for use of pyRoot. (I am using conda 4.10.3)
I have set up a new environment with python 2.7, because I believe I read somewhere that ROOT does not work well with python 3. After installing python to the new environment and activating it, I have added conda-forge to the current channels and attempted to install the following:
https://anaconda.org/conda-forge/root-dependencies
Using:
conda install -c conda-forge root-dependencies
This however returned the following:
(pyRoot) C:\Users\George>conda install -c conda-forge root-dependencies
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:
- root-dependencies
Current channels:
- https://conda.anaconda.org/conda-forge/win-64
- https://conda.anaconda.org/conda-forge/noarch
- https://repo.anaconda.com/pkgs/main/win-64
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/free/win-64
- https://repo.anaconda.com/pkgs/free/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.
I am not sure why this is not working, as I am fairly sure the root-dependencies are available on the conda-forge channel as per the link.
I have tried the following:
SET CONDA_RESTORE_FREE_CHANNEL=1
Just in case it was part of the free channel that may have been dropped, but I still get the same error.
Any ideas are appreciated :)
The package is not built for win-64 platform, which is what OP channel configuration indicates is being used. Consider WSL2 or Docker (ROOT Project provides pre-built images).
If you would like Conda Forge to build a Windows version, submit an Issue on the feedstock. Just be aware that ROOT Project itself only has beta support for Windows natively, so it's likely not a trivial task.
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.
So, to calculate Hausdorff Distance in a short time I found a CuSpatial library or cudf library. But while trying to install it through the Anaconda Promt conda install -c rapidsai-nightly cuspatial i get the following:
PackagesNotFoundError: The following packages are not available from current channels:
cuspatial
Current channels:
https://conda.anaconda.org/rapidsai-nightly/win-64
https://conda.anaconda.org/rapidsai-nightly/noarch
https://conda.anaconda.org/conda-forge/win-64
https://conda.anaconda.org/conda-forge/noarch
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
Sorry, but no win-64 builds are available for that on Anaconda Cloud. The developers only seem to support Linux 64, but I suppose if you're adventurous you can attempt a build from source.
I have a Python 3 environment inside Visual Studio 2017. I have been trying to install "camelot" package, which required "ghostscript" and "tk" (tkinter) packages to be pre-installed. I was successful in installing "tk", but no luck with "ghostscript". When I try to install "ghostscript", I get an error stating-
----- Installing 'camelot' -----
Solving environment: ...working... failed
PackagesNotFoundError: The following packages are not available from current channels:
- camelot
Current channels:
- https://repo.anaconda.com/pkgs/main/win-64
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/free/win-64
- https://repo.anaconda.com/pkgs/free/noarch
- https://repo.anaconda.com/pkgs/r/win-64
- https://repo.anaconda.com/pkgs/r/noarch
- https://repo.anaconda.com/pkgs/pro/win-64
- https://repo.anaconda.com/pkgs/pro/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.
----- Failed to install 'camelot' -----
Any help regarding this would be much appreciated
P.S- I have downloaded the "ghostscript" executable file and added it to the path of environment variables
I had been trying to install "ghostcript" just as a pre-requisite for "camelot". I visited this website- https://anaconda.org/conda-forge/camelot-py and entered "conda install -c conda-forge camelot-py" in Visual Studio's Python environment. And it worked!
conda install is prefixed to every package you enter. Hence just enter "-c conda-forge camelot-py " in the python environment tab.