I try to install mysqlclient v2.0.1 in anaconda/conda
conda install -n py37 mysqlclient=2.0.1
or
conda install -c "conda-forge/label/cf202003" -n py37 mysqlclient=2.0.1
But I get such error message:
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:
- mysqlclient=2.0.1
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
Where am i wrong and how to fix it ?
Conda Forge has never built mysqlclient for win-64 platform, and Anaconda seems to have given up on the Windows builds after 1.3.14 (~3 years ago). Thus, one cannot install v2.0.1 as a Conda package.
Perhaps consider using the MySQL Connector/Python package instead, which goes by mysql-connector-python and is building for all platforms on both the defaults and conda-forge channels:
conda install mysql-connector-python
Otherwise, if insisting on mysqlclient=2.0.1, one could install it with pip install with the environment active.
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 trying to create a new environment with conda but it is requiring pipwin to be installed even though it is already installed. I am not entirely sure why pipwin is required when it is not neccicary to create an environment.
(base) C:\Users\Owner>conda create -n testenv
Collecting package metadata (current_repodata.json): done
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed
PackagesNotFoundError: The following packages are not available from current channels:
- pipwin
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.
I tried this solution (PackagesNotFoundError: The following packages are not available from current channels:) but when I run conda install pipwin but I get a very similar output:
(base) C:\Users\Owner>conda install pipwin
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:
- pipwin
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.
I have tried any combonation of uninstalling/installing pipwin with pip and conda and nothing seems to work. I also uninstalled the anaconda prompt and installing it again as well as restarting my computer. Any suggestions/tips?
I recently had a similar problem when creating an environment. I used the same code as you, i.e. "conda create -n testenv". Instead, try using "conda create --name testenv". It solved my problem, so it might help you as well.
(base) C:\WINDOWS\system32>conda install PyQt4
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:
pyqt4
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.
I want to install PyQt4 as my project is built on PyQt4 but when going to install it showing above error. I don't want to install pyqt5
conda install PyQt=4
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:
pyqt=4
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.
showing above error while installing PtQt4
Please note: pyqt-4.x is not actively maintained anymore in default and conda-forge channels. Therefore I highly recommend not trying to install it into an existing environment!
You can get pyqt-4.x by using the specifier pyqt=4. So in principle the command conda install pyqt=4 would work. However this command could potentially cause problems due to lack of maintenance of the pyqt-4.x version in conda-forge, so please consider installing it into a new environment:
conda create -n <new-environment-name> -c conda-forge pyqt=4
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
EDIT 2021: DONT USE PYTHON 3.5.2 ( version is no longer supported )
I tried to create a conda python environment with python=3.5.2 and get bellows errors.
How can i add a custom link for installation ?
e.g. https://anaconda.org/anaconda/python/3.5.2/download/win-64/python-3.5.2-0.tar.bz2
conda create -n eapp_env python=3.5.2
Collecting package metadata (current_repodata.json): done Solving
environment: failed with current_repodata.json, will retry with next
repodata source. Collecting package metadata (repodata.json): done
Solving environment: failed
PackagesNotFoundError: The following packages are not available from
current channels:
python=3.5.2
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.
It looks like only 3.5.4, 3.5.5, and 3.5.6 are available on the main/win-64 index of the anaconda channel. I am not sure why they removed previous versions of 3.5.
You can switch channels to conda-forge, which still has all of the versions available.
conda create -n eapp_env python=3.5.2 --channel conda-forge
Just as an FYI typically the sub-sub-version of a package only has minor updates and will not affect anything else in your environment.