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.
Related
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.
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.
I would like to create a python 3.3 environment in Anaconda (latest Minicoda3 installed).
I tried using conda create -n py33 python=3.3:
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:
- python=3.3
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
(I added conda-forge too in case there is a python 3.3 version there). Looking up the Anaconda and Conda-forge repositories, it seems to me that python 3.3 is deprecated, as it is not listed among the available packages.
However, I would need to use python 3.3. I would prefer to do it through Anaconda, but it is not strictly necessary. Also, given that Python 3.3 is not available in the Anaconda repo, I suppose additional python packages wouldn't be available either?
It turned out that Python 3.3 is available in the 'free' repository:
conda create -n py33 python=3.3 --channel free
This worked flawlessly.
(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
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.