简体   繁体   中英

Yahoo Finance Package installation in Anaconda

I am trying to install Yahoo Finance Package from Anaconda Cloud with the below CMD Line instruction

pip install -i http://pypi.anaconda.org/pypi/simple yahoo-finance

But I am getting an error, not sure how to bypass. Please help

在此处输入图像描述

If I do

pip install yahoo-finance

在此处输入图像描述

只需在 Anaconda 提示符下运行此命令:

pip3 install yfinance

Below code:

 python -m pip install yahoo-finance 

works well

Version of Python: 3.7

Typing in : Anaconda Prompt

conda install -c conda-forge yfinance
conda install -c postelrich yahoo-finance

The simple command usually works:

pip install yahoo-finance

If this does not work usually anaconda has good packages that work with each other:

conda install yahoo-finance

Things that could introduce problems that are not solved by the above commands:

  1. Python is not properly installed. Reinstall python. I would recommend using anaconda to install Python, because it has a lot of libraries pre-installed that do not conflict with each other.
  2. Problems with the internet connection. Make sure that you have connection to the internet and specifically to pypi website ( https://pypi.org/ )
  3. You do not have ssl libraries installed and that does not allow you to connect using https. Install ssl libraries.

Based on the error I would recommend reinstalling Python with Anaconda and checking your internet connection.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM