python_speech_features package installation failure - python

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

Related

Installing bowtie2 from miniconda

I recently bought a Mac and I just installed miniconda (Miniconda3 macOS Apple M1 64-bit pkg). However, when I try to install bowtie2 (conda install -c bioconda bowtie2), I get this message:
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:
bowtie2
Current channels:
https://conda.anaconda.org/bioconda/osx-arm64
https://conda.anaconda.org/bioconda/noarch
https://conda.anaconda.org/conda-forge/osx-arm64
https://conda.anaconda.org/conda-forge/noarch
https://repo.anaconda.com/pkgs/main/osx-arm64
https://repo.anaconda.com/pkgs/main/noarch
However, the package looks to be in bioconda:
https://anaconda.org/bioconda/bowtie2
What is the problem there? I can install other packages with no further issues.
I realized that I couldn't install it using Miniconda3 macOS Apple M1 64-bit pkg, but I could install it with the Miniconda3 macOS Intel x86 64-bit pkg...

Conda reports PackagesNotFoundError: python=3.1 for reticulate environment

I'm trying to use python packages in R, but I keep getting the same error:
ImportError: cannot import name 'read_csv' from 'pandas' (unknown location)
I cant use "py_install" neither:
Collecting package metadata (current_repodata.json): ...working... done
Solving environment: ...working... failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working... failed with initial frozen solve. Retrying with flexible solve.
PackagesNotFoundError: The following packages are not available from current channels:
- python=3.1
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
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: one or more Python packages failed to install [error code 1]
I have tried to specify my folder in which the packages are in, but it doesn't work.
Hope you guys can help.
My code:
library(reticulate)
use_condaenv("C:/Users/Bruger/AppData/Local/r-miniconda/envs/r-reticulate")
import("pandas")
py = py_run_string
py("import pandas as pd")
py("from pandas import read_csv")
Conda 4.10 is incompatible with python 3.10.
The issue is not related to R, and maybe there is nothing wrong with your code. The same type of problem occurred at the following SO issues:
PyTorch installation asks for python=3.1 . Python Version installed: 3.10.0
Trying to install Earth Engine on R; python=3.1 not available
Why can't I install matplotlib or pandas with pip OR miniconda?
Solutions
If you need python 3.10+
If you need python 3.10 or newer, you must have conda 4.11 or newer. Install the desired conda version, or switch to the base environment and update conda using conda update conda. Something like:
conda activate base
conda update conda
conda create --name r-reticulate python=3.10 pandas numpy scipy matplotlib scikit-learn
conda activate r-reticulate
You may need to add non-default channels to your conda, as I get an UnsatisfiableError using it. By using the conda-forge channel e.g., I got no error (but this may install newer than usual packages):
conda create --name r-reticulate -c conda-forge python=3.10 pandas numpy scipy matplotlib scikit-learn
If you want to keep the old conda
Install another environment from base with python 3.9 or older like
conda activate base
conda create --name r-reticulate python=3.9 pandas numpy scipy matplotlib sklearn
conda activate r-reticulate
Other symptoms
You basically cannot install anything after creating and activating your python 3.10 environment. You cannot even install conda-build:
conda install conda-build -y
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.
ResolvePackageNotFound:
- python=3.1
Conda 4.10 contains python 3.9 and conda 4.11 contains python 3.10, so your base environment should be compatible with the python version therein.
duplicate?
If you believe that your question is a duplicate, please check how you can improve it.
This answer is in agreement with meta. I believe this is an example where exactly the same answer should be accepted, but I also customized the answer to the question.
This works for me
library(reticulate)
x = import('pandas')
x$read_excel()
You can install the package in this way
py_install("pandas")

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

Installing cot-reports module for anaconda

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

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

Categories

Resources