I'm trying to install unrar with conda, with no luck. I installed other packages with no issues before.
Here's the commands I used:
user: conda activate username
user: conda install unrar
Which led to the follwing output:
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:
- unrar
Current channels:
- https://repo.anaconda.com/pkgs/main/linux-64
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/r/linux-64
- https://repo.anaconda.com/pkgs/r/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 looked for the package on anaconda.org and didn't find it. I also tried using the command conda install -c conda-forge unrar as instructed in a post about a similar issue. Didn't work.
Does anyone know how to solve this?
The package doesn't seem to be available for installation with conda, but you can install with pip, according to https://github.com/matiasb/python-unrar:
pip install unrar
In case you don't yet have pip installed in your environment, do conda install pip, and then install unrar with pip.
Related
I want to use the botometer API on Python. I use Sypder 5 and so I use Anaconda for the installation of packages.
I get the following message when trying to install it.
(spyder-env) PS C:\Users\xxxx> conda install botometer
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:
botometer
Current channels:
https://conda.anaconda.org/conda-forge/win-32
https://conda.anaconda.org/conda-forge/noarch
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.
Is there some other way to use botometer?
It's a pure Python library - just install it through Pip. You may want to install tweepy through Conda first though, since that is a dependency.
conda install -n spyder-env -c conda-forge tweepy
conda run -n spyder-env python -m pip install botometer
I am try ing to install symfit on a MacBook Pro M1 using miniforge, for processor compatibility as pip3 install symfit results into errors. However, when running conda install -c conda-forge symfit, I get:
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:
- symfit
Current channels:
- https://conda.anaconda.org/conda-forge/osx-arm64
- https://conda.anaconda.org/conda-forge/noarch
- https://conda.anaconda.org/conda/osx-arm64
- https://conda.anaconda.org/conda/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.
When doing so, I find that symfit is available in the conda-forge channel! Why can't it be installed from the command line?
At the time of the question, the Conda Forge feedstock for symfit was not building for osx-arm64 platform. After an issue being filed on the feedstock, one of the maintainers updated the feedstock to generate noarch builds (platform agnostic). So, starting with version 0.5.3, what OP attempted should just work.
conda install -c conda-forge symfit
The lesson here is: Conda Forge is an open platform, so if you find something not being built, please reach out to the feedstocks or submit a Pull Request. The community depends on active feedback from users to improve.
UPDATE:
this answer was posted before OP changed to use the correct conda install -c conda-forge symfit command!
turns out at the time of question symfit has no build for "OSX_arm64" which is why the command fails
because conda install will try to install the module from the default channel...
you have to explicitly tell conda to use conda-forge!
conda install -c conda-forge symfit
-> check the doc!! https://symfit.readthedocs.io/en/stable/installation.html
I am having issues with having Conda install the library at this link:
https://github.com/ozgur/python-firebase
I am running: conda install python-firebase
This is the response I get:
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:
- python-firebase
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.
Does anyone have a solution? I successfully installed it through pip, but I can't get the package in the Conda environment.
Python 3.7.4
You have to run this
conda install -c auto python-firebase
Take a look at this
Checking https://anaconda.org/search?q=firebase you can see that there is only one entry that has win64 listed on the right side. Since you are running on windows, you need to select that one and then enter the correct installation command:
conda install -c nayyaung python-firebase
(Note that the channel auto suggested in other answers has only linux-64 available)
As to your question from the comments:
I guess I was asking if theres anyway for Conda to pull libraries out of my PIP env
I don't really know what you mean by pull from my pip env. If that means somehow pointing to the site-packages of another python installation, then no, this would be rather difficult to implement I guess. However, you can always pip install any package from pypi to your conda environments if they are not available for win64 from the conda channels. Also Read This on using pip in conda environments
Try doing conda install -c auto python-firebase
Check https://anaconda.org/auto/python-firebase for further information
I cannot download the package googleanalytics and google2pandas to the anaconda environment
I tried conda install package
(base) C:\WINDOWS\system32>conda install google2pandas Solving environment: failed
PackagesNotFoundError: The following packages are not available from current channels:
- google2pandas
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
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 expect that at least one of those packages will be installed
What it's saying is, that the package is not available through Conda. It doesn't seem to be available through Conda Forge either.
I have just installed Google2Pandas through pip:
pip install Google2Pandas
It's probably the same with the other package.
i want to install hazm on anaconda3 .I use this command to install this package with downloaded package :
conda install hazm-0.4.tar.gz
or this command in pycharm :
conda install hazm
in both manner it gives me this error:
Solving environment: failed
PackagesNotFoundError: The following packages are not available from
current channels:
hazm
Current channels:
https://repo.continuum.io/pkgs/main/linux-64
https://repo.continuum.io/pkgs/main/noarch
https://repo.continuum.io/pkgs/free/linux-64
https://repo.continuum.io/pkgs/free/noarch
https://repo.continuum.io/pkgs/r/linux-64
https://repo.continuum.io/pkgs/r/noarch
https://repo.continuum.io/pkgs/pro/linux-64
https://repo.continuum.io/pkgs/pro/noarch
what is the problem ?
The instruction on the hazm documentation page is to install the package using pip:
pip install hazm
pip can be used to install non-conda packages in a conda environment, if there isn't a conda package available.
Reading this question and its answers it sounds as if the latest version of hazm may not install under Windows because of a dependency issue. If you're on Windows you need to specify the 0.4 version, either with hazm==0.4 or simply by pointing to the archive you downloaded. I was able to install hazm 0.4 from the gz archive on Anaconda under Windows without errors as follows:
conda create -n testhazm python=3.4 nltk=3.0.0
activate testhazm
pip install hazm-0.4.tar.gz
(If I allowed conda to use the latest version of nltk, the installation went OK but I got an error when I actually started Python and tried to import hazm. You may be able to get it working with a more recent version of nltk and/or Python by experimenting.)
Background:
When you do conda install hazm the error message The following packages are not available from current channels: hazm means exactly what it says: the channels specified in your current conda configuration do not contain this package.
Often, packages that are not available on the default conda channels can be found on conda-forge, but I checked this with conda search hazm -c conda-forge and it looks like it's not there either.
To use the command conda install hazm-0.4.tar.gz, the downloaded file would need to be a conda package, not just a Python module.