The following packages are not available from current channels: - yfinance - python-3.x

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

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

How to install packages on a conda environment with a specific python version

I need to use opencv and it needed python version older than 3.9. So I created a conda environment with python 3.7.9 and tried to use
pip install opencv-python
It installed but when I tried to import it gave an error:
ModuleNotFoundError: No module named 'cv2'
After I installed it on the anaconda environments tab I could import. I need to install pylibdmtx, too, but again I cannot import it after installing.
I see the version of python is 3.7.9 on the environment. But when I use pip it is using this:
/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages (0.1.9)
I do not know what I am missing here. What should I do?
Recommended Solution
Prefer specifying what you want in an environment up front, e.g.,
opencv.yaml
name: py37_opencv
channels:
- conda-forge
- defaults
dependencies:
- python=3.7
- opencv
Create Environment
conda env create -n py37_opencv -f opencv.yaml
Troubleshooting Issue
Otherwise, if you want get the version you have working, try ensuring that pip is actually installed in the environment of interest:
conda activate your_env
conda install pip
# then use pip …

why could not found eyed3 in the conda repo

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

How to install Keras tuner for anaconda?

I've tried these commands inside the conda environment that I've created.
sudo pip install -U keras-tuner
sudo pip3 install -U keras-tuner
and
git clone https://github.com/keras-team/keras-tuner.git
cd keras-tuner
pip install .
Still my jupyter notebook shows an error stating:
No module named kerastuner
I just installed it with: conda install -n env_name -c conda-forge keras-tuner
To install this package with conda run one of the following:
conda install -c conda-forge keras-tuner
conda install -c conda-forge/label/cf202003 keras-tuner
source: https://anaconda.org/conda-forge/keras-tuner
If you find yourself in need of a PyPI package in Conda then you should write a YAML file and create a new environment using that. This is the best practice recommendation found in "Using Pip in a Conda Environment". Otherwise, Conda can get rather unstable if you install PyPI packages ad hoc. It would be something like:
environment.yml
name: my_keras_env
channels:
- conda-forge
- defaults
dependencies:
- python=3.7 # change this to meet your needs
- ipykernel # since you're using Jupyter
- keras
- tensorflow>=2.0.0 # this and below are keras-tuner requirements
- numpy
- tabulate
- terminaltables
- colorama
- tqdm
- requests
- psutil
- scipy
- scikit-learn
- ... # add any additional packages you require
- pip
- pip:
- keras-tuner
Note the keras-tuner requirements are found in the setup.py file.
Then, to create the environment
conda env create -f environment.yml
Note that you can use the --name|-n flag to provide a different name for the env.
Whenever you need to add additional packages to the env, edit the YAML definition and recreate the env.

Can someone help me in installing python package "Prophet" on windows 10

Can someone help me in installing python package "Prophet" on windows 10 .
I tried installing python 3.5 and the dependency 'pystan' but yet I get below error.
"The package setup script has attempted to modify files on your system that are not within the EasyInstall build area, and has been aborted.This package cannot be safely installed by EasyInstall, and may not support alternate installation locations even if you run its setup script by hand.Please inform the package's author and the EasyInstall maintainers to find out if a fix or workaround is available.
Command "python setup.py egg_info" failed with error code 1 in c:\users\suman\appdata\local\temp\pip-build-aqoiqs\fbprophet\"`
I spent a good two days on this issue, finally, I found the following solution
1) Download and install Anaconda 3 (for python 3.6)
2) Create an environment and call it whatever you like
3) Run that environment (which will open the command prompt)
4) follow the following steps in command prompt : (commands are shown in bold)
python -m pip install -U pip
Requirement already up-to-date: pip in c:\users\william\anaconda3\envs\testtime\lib\site-packages
conda install -c conda-forge pystan
Fetching package metadata ...............
Solving package specifications: .
Package plan for installation in environment C:\Users\William\Anaconda3\envs\Testtime:
The following NEW packages will be INSTALLED:
backports: 1.0-py36_1 conda-forge
backports.functools_lru_cache: 1.4-py36_1 conda-forge
ca-certificates: 2017.11.5-0 conda-forge
cycler: 0.10.0-py36_0 conda-forge
cython: 0.27.3-py36_0 conda-forge
freetype: 2.7-vc14_1 conda-forge [vc14]
icc_rt: 2017.0.4-h97af966_0
icu: 58.2-vc14_0 conda-forge [vc14]
intel-openmp: 2018.0.0-hd92c6cd_8
jpeg: 9b-vc14_2 conda-forge [vc14]
libpng: 1.6.34-vc14_0 conda-forge [vc14]
matplotlib: 2.1.0-py36_0 conda-forge
mkl: 2018.0.1-h2108138_4
numpy: 1.13.3-py36ha320f96_0
openssl: 1.0.2m-vc14_0 conda-forge [vc14]
pyparsing: 2.2.0-py36_0 conda-forge
pyqt: 5.6.0-py36_4 conda-forge
pystan: 2.17.0.0-py36_vc14_0 conda-forge [vc14]
python-dateutil: 2.6.1-py36_0 conda-forge
pytz: 2017.3-py_2 conda-forge
qt: 5.6.2-vc14_1 conda-forge [vc14]
sip: 4.18-py36_1 conda-forge
six: 1.11.0-py36_1 conda-forge
tornado: 4.5.2-py36_0 conda-forge
zlib: 1.2.11-vc14_0 conda-forge [vc14]
pip install fbprophet
I also had several issues installing prophet on my Windows 10 machine using conda and Python 3.7.
The following steps made it work:
Create a fresh conda environment
Install pystan and other dependencies using conda install numpy cython matplotlib scipy pandas -c conda-forge (see https://pystan2.readthedocs.io/en/latest/windows.html#steps)
Install prophet using conda install prophet -c conda-forge
In then still had a numpy error Importing the numpy c-extensions failed... as described here: https://numpy.org/devdocs/user/troubleshooting-importerror.html But this was due to my IDE which is VS Code as I could successfully run my prohet model using the command line with the activated conda environment.
So please also make sure to test the installation from the command line in order to rule out that the error stems from you IDE.
Not sure if the same trick would work on Windows, anyways posting w.r.t what just worked on RHEL 7, f.w.i.w
Motivation was installing fbprophet using conda:
conda install -c conda-forge fbprophet
and, it could install pystan==2.17.1.0 and fbprophet==0.6
So, the trick was:
uninstall the pystan package when you had earlier run pip3 install fbprophet, basically one needs to execute the following:
pip3 install pystan==2.17.1.0
pip3 install fbprophet==0.6
And one can thereby import fbprophet in python3 terminal, so working :)
I currently have a fairly vanilla install of Python 3.5 on my Windows 10 machine that I setup using Anaconda.
I was able to install Prophet using the below command, that might work for you. Depending on how your installed Python you may need to run the below command in a cmd shell that was opened as administrator.
pip install prophet
Whenever I have tried to install fbprophet package multiple issues have come.I will suggest a few steps, hopefully they should work.
Close all existing Python / R running instances. If possible restart the machine. I have seen to work as few libraries / dependencies which I want to update might be getting used by existing running instances.
Use anaconda prompt.
First install pystan -
`conda install pystan`
Now install fbprophet
'conda install -c conda-forge fbprophet
Hopefully it should work for you. Also, ensure you have admin rights.
I faced the same issue and my solution was to:-
Create a new environment with Python3.5
conda create -n pht python=3.5 anaconda
Install Prophet using the command.
conda install -c conda-forge fbprophet
I didn't install 'gcc' although this was advised before installing Prophet.

Resources