why could not found eyed3 in the conda repo - python-3.x

When I tried to install eyed3 using conda command like this:
sudo conda install eyeD3
show this error:
$ sudo conda install eyeD3 ‹ruby-2.7.2›
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:
- eyed3
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.
why could not found the eyed3 in the conda repo? what should I do to install eyed3 using conda?

There is no conda package for macOS in any conda channel, so you will neeed to follow the docs and do
pip install eyeD3

Related

Unable to install tensorflow-gpu on anaconda with PackagesNotFoundError

I have created new environment in anaconda, webapp-env, to use streamlit and flask.
I have installed cuda (8.1) and cudatoolkit (11.2) so it is compatible with my environment and am trying to install tensorflow-gpu=2.8.0 (or 2.9.0) as per the table here:
https://www.tensorflow.org/install/source_windows
Unfortunately, I am getting this error (below) and I dont know how to solve this.
(webapp-env) PS C:\Users\me\Coursera_NN_visualizer_web_app_MNIST_project> conda config --append channels conda-forge tensorflow-gpu = 2.9.0
usage: conda-script.py [-h] [-V] command ...
conda-script.py: error: unrecognized arguments: tensorflow-gpu = 2.9.0
(webapp-env) PS C:\Users\me\Coursera_NN_visualizer_web_app_MNIST_project> conda install -c conda-forge tensorflow-gpu=2.8.0
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:
- tensorflow-gpu=2.8.0
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.
I have an Nvidia 3060 graphics card and can use tensorflow-gpu version 2.8.0 successfully in my anaconda base virtual environment.
any advice?
Tnesorflow-GPU in the mainchannel is at version 2.6 and from conda-forge, only a linux version is available, see here and here
You probably used pip to install it in your base env. You can do so in your new env just as well

Issue while installing a lower python version in conda prompt

I have python version 3.8.8 in conda. I want version 3.5.0 for a Machine learning project but when I ran the command conda install python=3.5.0, following output came:
**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=3.5.0
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 am not able to comprehend this. How can I install the required python version?
Good thing with conda is you can maintain as many versions of python as you want simultaneously but you're trying to modify the main distribution of python that comes with the conda that you've installed. What you should do is create a new environment with the desirable python version.
Create a new environment for your ML-related work using
conda create -n ml_env python=3.5.0
conda activate ml_env
This way, if you no longer need the stuff you installed for ML, you can easily remove the whole environment:
conda env remove -n ml_env

Remove nodejs with Conda in JupyterLab [duplicate]

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")

PackagesNotFoundError: The following packages are not available from current channels: - ipython-notebook

I'm new to Anaconda and Python. I have set up a virtual environment in Anaconda named "gl-env".
gl-env Python version has set to 2.7
pip version is set to 9.0.1
I am doing a assignment which requires it to run Jupyter notebook in this environment.
(gl-env) C:\Users\SHIVAKUMAR>conda install ipython-notebook
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:
- ipython-notebook
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 don't know much about Anaconda. What can I try next?
(gl-env) C:\Users\SHIVAKUMAR>conda install jupyter notebook

The following packages are not available from current channels: - yfinance

I try to install yfinance into anaconda, using command:
conda install -c anaconda yfinance
error message shows:
WARNING: The conda.compat module is deprecated and will be removed in a future release.
Collecting package metadata: done
Solving environment: failed
PackagesNotFoundError: The following packages are not available from current channels:
yfinance
Current channels:
https://conda.anaconda.org/anaconda/win-64
https://conda.anaconda.org/anaconda/noarch
https://repo.anaconda.com/pkgs/main/win-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/free/win-64
https://repo.anaconda.com/pkgs/free/noarch
https://repo.anaconda.com/pkgs/r/win-64
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 also used:
conda config --append channels conda-forge
nothing changes
conda install -c anaconda yfinance
conda config --append channels conda-forge
Try to use the pip install yfinance command instead of conda install

Resources