Prophet fails to install in Python - python

I've been trying to install prophet through
pip install pystan
pip install prophet
but I keep getting errors. Then, I tried using conda to install prophet using:
conda install -c conda-forge prophet
But I keep getting errors such as,
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:
- prophet
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
What can I do to fix this?

Update: The Conda installation should now be working. The prophet package now has a feedstock on Conda Forge.
The Prophet package was in the midst of transitioning from going by the name fbprophet in Python to what OP reports in the documentation, simply prophet. While this had already been updated in the docs and a PyPI version had been pushed, there was a backlog of review requests on the conda-forge/staged-recipes repository, where the prophet package was awaiting review.
In the interim, one should have continued to use the instructions from the previous documentation, namely
conda install -c conda-forge fbprophet
and referred to the module by the name fbprophet.

Related

How to install mysqlclient v2.0.1 in anaconda/conda

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.

Create Botometer API to Python Anaconda

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

Conda environment requires pipwin

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.

PyQt4 is not installing

(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

Anaconda Navigator PIP Python-Firebase Package Won't Install

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

Categories