Installing cot-reports module for anaconda - python

I have a problem with installing cot-reports module for Anaconda from the following page:
https://github.com/NDelventhal/cot-reports
I am trying the following command for installation from Anaconda terminal:
conda install git+https://github.com/NDelventhal/cot-reports
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:
//github.com/ndelventhal/cot-reports
Any idea on how can I install this modeule for Anaconda?

I just released the package on PyPI three days ago, so it was only available through Github up to this week. It's a PyPI-only package, and is not listed among the Conda-Forge packages so far, so as of now it can only be found on PyPI. However, as for Conda-Forge it does not require the maintainer of the code to do the packaging, this can change any time.
Nevertheless, to install a pip package in a Conda environment, you should be able to just call: pip install cot_reports.

Try
pip install cot_reports
or
pip install git+https://github.com/NDelventhal/cot_reports

Related

python_speech_features package installation failure

I am working on a .py module, which requires me to use the python_speech_features package. I wrote the following command in the Anaconda Prompt:
conda install -c contango python_speech_features
But I am getting the following error:
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_speech_features
My system config:
Python: 3.8.8
Conda: 4.10.1
Since it is pure Python and no one is actively maintaining a Conda build, feel free to install from PyPI:
## activate environment
conda activate foo
## install dependencies
conda install pip numpy scipy
## install with pip
pip install python_speech_features

Can't install graphviz by using "conda install python-graphviz" or "conda install graphviz"

I tried install graphviz package using pip install graphviz, and I succesfully import it in jupyter notebook with python3, but failed to run the code below:
s = Source.from_file("tree_test.dot")
s.view()
The tree_test.dot file is under the current working directory. The error message is:
ExecutableNotFound: failed to execute ['dot', '-Kdot', '-Tpdf', '-O', 'tree_test.dot'], make sure the Graphviz executables are on your systems' PATH
I was advised to uninstall graphviz first using pip uninstall graphviz and then tried conda install graphviz and conda install python-graphviz, respectively. But both of them failed to install graphviz and here is the error message :
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.
.....
#(spend long time examining conflict and shows what those conflicts are but still failed to install graphviz)#
According to Anaconda's package documentation, You need to type:
conda install -c anaconda graphviz

Errors while installing ROOT

I'm new to Python. I installed miniconda to get packages iminuit and minuit. To do this, I created a new environment to avoid conflicts. But when I try to install minuit with the command
conda install minuit -c conda-forge
I get the following error messages:
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:
- minuit
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.
How can I solve this?
Exactly as the messages say, the package isn't available in the current channels. If you look on anaconda.org you will find:
https://anaconda.org/mutirri/minuit which says:
To install this package with conda run one of the following: conda install -c mutirri minuit conda install -c mutirri/label/all minuit
I'm not sure of the versioning of CERN's ROOT packages, but I guess that they no longer support Minuit package, instead Imminuit which is more lightweight and Jupyter friendly.
So you can install this package with this command, according to here:
conda install -c anaconda iminuit

Install wand package in Conda on Windows

I am looking for help installing wand as a Conda newbie. I was successful installing and using wand outside of Conda on this machine. I am running ImageMagick-7.0.10-Q16-HDRI system-wide. When I run:
conda install -c conda-forge wand
or
conda install -c conda-forge/label/cf202003 wand
as recommended at conda forge, this is the result:
conda install -c conda-forge/label/cf202003 wand
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.
failed
UnsatisfiableError: The following specifications were found to be incompatible with each other:
Output in format: Requested package -> Available versionsThe following specifications were found to be incompatible with your CUDA driver:
- feature:/win-64::__cuda==10.2=0
Your installed CUDA driver is: 10.2
It turns out that the conda error message is misleading. The wand package at conda-forge is in error. Instead I installed wand through pip:
conda install pip
pip install Wand

Trying to install wptools in my Anaconda enviroment to use in Jupyter

I'm trying to install wptools in my python 3 Anaconda environment to use in Jupyter. Since it is a non-conda package, I used pip. But I get this error:
(py3) C:\Users\owner>pip install wptools
Collecting wptools
Using cached https://files.pythonhosted.org/packages/e2/5c/0d8af5532e44477edeb3dac81d3a611ea75827a18b6b4068c3cc2188bfe5/wptools-0.4.17-py2.py3-none-any.whl
Requirement already satisfied: certifi in c:\anaconda2\envs\py3\lib\site-packages (from wptools) (2018.10.15)
Collecting lxml (from wptools)
Downloading https://files.pythonhosted.org/packages/43/c7/e088bf0f4f81e6b366cc2de12939c559b588b9525ad76215d122e69151ed/lxml-4.2.5-cp37-cp37m-win32.whl (3.2MB)
100% |████████████████████████████████| 3.2MB 1.2MB/s
Collecting html2text (from wptools)
Using cached https://files.pythonhosted.org/packages/16/20/de2b458ef434713053dd83209a03a5431ebe0527c8e14d9ae7838ff67d8a/html2text-2018.1.9-py3-none-any.whl
Collecting pycurl (from wptools)
Using cached https://files.pythonhosted.org/packages/e8/e4/0dbb8735407189f00b33d84122b9be52c790c7c3b25286826f4e1bdb7bde/pycurl-7.43.0.2.tar.gz
Complete output from command python setup.py egg_info:
Please specify --curl-dir=/path/to/built/libcurl
Command "python setup.py egg_info" failed with error code 10 in C:\Users\owner\AppData\Local\Temp\pip-install-39cbrz2h\pycurl\
I just had the same problem and solved it using pip install wptools.
I am not an expert and it seems weird that I cannot install it using the GUI (Anaconda Navigator).
Update: I see that I misread your question and that my solution did not work for you :).
(base) C:\Users\Biest>conda install wptools
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:
- wptools
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.
(Error Message)
(Solution)
(GUI does not work)
(The "black" window is the Anaconda Prompt.)
here's what you'll do
in your command prompt since you're already in a Conda environment use Conda to install pip (conda install pip)
afterwards pip install wptools and you're good to go :)
I had this same problem, and pycurl was the main cause in my case.
To fix it, I started by installing pycurl before installing wptools
conda install pycurl
pip install wptools
This error is probably related to setuptools. Upgrade setuptools and reinstall wptools.
pip install setuptools --upgrade
pip install wptools --ignore-installed

Categories

Resources