conda install python-graphviz: stuck at Solving environment - graphviz

When I tried to conda install python-graphviz in Anaconda3 on my Ubuntu machine, it stuck at Solving environment:
(base) $ conda install python-graphviz
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: /
What's the problem?

I had the same problem. The following was my solution:
Install graphviz manually.
E.g. for ubuntu:
sudo apt install graphviz graphviz-dev
Then do a pip install for the python package.
pip install graphviz
Confusingly the pip install of graphviz is the same as the conda install of python-graphviz. (bad naming)
Typing this from my phone so better double check my commands for typos. Let me know if that solved it.

Related

How does one install opam with conda for Mac/apple/os-x?

I discovered that one can install much more than python stuff in conda. I am instlaling opam with conda for ubuntu with:
conda install -c conda-forge opam
and wanted to do it for my mac. Got some issues.
(iit_synthesis) brandomiranda~/iit-term-synthesis ❯ conda install -c conda-forge opam
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:
- opam
Current channels:
- https://conda.anaconda.org/conda-forge/osx-64
- https://conda.anaconda.org/conda-forge/noarch
- https://repo.anaconda.com/pkgs/main/osx-64
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/r/osx-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.
does anyone know how to resolve them or install opam with a mac?
The Conda Forge feedstock for opam is only configured to build for linux-64 platform. Consider opening an Issue to request additional platform support for Conda.
Otherwise, there are binary distribution options for MacOS.

How can I install python-binance package in Pycahrm? (I am using the conda interpreter for my project)

I am trying to install the Python-binance package to Pycharm, but it is not available for the conda interpreter that I use.
When I try to install it via 'conda install python-binance' in my terminal I get the following error:
(base) patrickchong#Patricks-MacBook-Pro ~ % conda install python-binance
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-binance
Current channels:
- https://repo.anaconda.com/pkgs/main/osx-64
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/r/osx-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.
Which is strange, because it installs fine when I run 'pip install python-binance'.
Any help would be much appreciated!
Thanks to Flying Teller's comments below I managed to install python-binance using conda. However, in my Python interpreter, which uses conda, python-binance still doesn't appear? (when I click the + sign and look for python-binance it is not there?)
There is nothing unexpected happening here. pip and conda use different sources for their packages. pip always checks PyPi on which python-binance is available. conda looks for packages in a list of configured channels, in you case, the default channels. But if you check with the search function on anaconda.org, you can see that the package is only available from conda-forge, so you can install it from conda using
conda install -c conda-forge python-binance

Cannot install geopandas

I am trying to instal geopandas. It goes like this:
(base) PS C:\Users\a_e_f> conda install geopandas
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen
solve. Retrying with flexible solve.
Solving environment: \
Found conflicts! Looking for incompatible packages.
This can take several minutes. Press CTRL-C to abort.
Examining tornado:*
etc etc for more than an hour.
How I got here:
I installed anaconda many months ago but never got around to using it. Now I need to do something with geopandas so...
I tried to update anaconda. Got some warnings & so decided to uninstall it & do a new clean install.
I attempted to uninstall anacondas but found the instructions unclear & missed a step. Reinstalled anaconda. geopandas wouldn't install.
Research revealed the missing uninstall step. Did it again. Looked like it was all gone.
Installed anaconda. Verified as here: https://docs.anaconda.com/anaconda/install/verify-install/#
Tried to install geopandas. See above.
I am using Windows 10
Do not install packages into the base environment, create new, clean ones for your project.
Use conda-forge channel where GeoPandas team has the ability to fine tune installation process
conda create -n geo_env
conda activate geo_env
conda config --env --add channels conda-forge
conda config --env --set channel_priority strict
conda install geopandas
if that doesn't help, use mamba to install GeoPandas.
conda create -n geo_env
conda activate geo_env
conda config --env --add channels conda-forge
conda config --env --set channel_priority strict
conda install mamba
mamba install geopandas
Following merv's hints (above) I used the approach here: Conda install some-package hangs with (Solving environment: failed)
That seems to have fixed the problem.
Thanks all for your help.

conda not installing packages

I am unable to install packages through conda. When I run conda install, I get this output.
(base) C:\Users\Madhan_Kumar>conda install pytesseract
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.
this is happening since I uninstalled and reinstalled anaconda. conda was working properly before that.
Does anyone know how to solve this?

Failed "solving environment" for python 3.8 installation through anaconda

(base) Apples—MacBook—Pro-2:— sailong$ conda install python=3.8
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: 1
(base) Apples—MacBook—Pro-2:— sailong$ conda install python=3.8
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: /
Found conflicts! Looking for incompatible packages.
This can take several minutes. Press CTRL—C to abort.
Examining conflict for sqlalchemy pyopenssl conda—package—handling pytest—openfiles pathlib2 py—lief sortedco/ a
Did anyone encounter the same problem or knows how to tackle it?
I experience a lot of problems after updating the system.
System: MacOS Catalina V10.15.3
I've fixed this problem by uninstall the "whole" python and reinstall with conda. I think the problem maybe due to the other conda python 3.7 package related,
conda remove --force
These are common Problems when you install Anaconda via the GUI installer, Install Anaconda using the Bash Shell Script from Anaconda.com . This will solve most of the issues.
https://repo.anaconda.com/archive/Anaconda3-2021.11-MacOSX-x86_64.sh
This one worked for me, use "sudo"

Resources