Creating python 3.3 environment in Anaconda - python

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.

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.

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

Install python enviroment python=3.5.2

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.

Categories