Yahoo Finance Package installation in Anaconda - python

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

Just run this command on Anaconda prompt:
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:
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.
Problems with the internet connection. Make sure that you have connection to the internet and specifically to pypi website (https://pypi.org/)
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.

Related

pip is configured with locations that require TLS/SSL during installing anything with PIP command

Whenever I am trying to install anything with pip I am getting an error:-
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
I am using
windows 10
Anaconda Python
Spyder IDE
I am a newbie in programming
I see you have Anaconda Python. Thats is good but you can't use pip. You should use the conda command. Use it like you would pip. conda install numpy will install the numpy package on your machine,

Trouble installing some libraries in python (oauth2client and gspread)

I'm using python 3.7 (environment created by anaconda) and trying to run python code that uses some google libraries but I don't really know how to install them.
From PyCharm IDE (Settings -> Project Interpreter -> Available Packages) I cannot find those packages to install.
And from terminal, running 'pip install --upgrade oauth2client' or 'pip3 install --upgrade oauth2client' doesn't seem to work either.
What I don't understand is: to install packages/libraries on python 3.x, should i only use pip3? But what if there is more than one python environment? On which one pip will install those libraries?
If you're using Anaconda, you should also have an Anaconda Prompt (py37) program that functions like the terminal. Typing pip install --upgrade oauth2client into Anaconda Prompt (py37) will install the upgrade into your current python environment. Alternatively, you can use conda install with more options (including specifying which environment you want).

Problems installing astra toolbox in Python

I'm trying to install astra-toolbox for python on windows and I'm getting this error.
Anyone have any ideas?
i have tried to install via pip method but it's not working facing the same error as you. if you go to official installation documentation instructions no method to use pip method is given.
i have anaconda installed in my system so i have tried using these commands source:
conda install -c astra-toolbox astra-toolbox
conda install -c astra-toolbox/label/dev astra-toolbox
this solve the issue and astra-toolbox is installed in my system.
PS. this will downgrade package in anaconda. so better to install in separate python environment.

Install confluent-kafka avro with pip

I'm trying to install the avro package for confluent-kafka with python3 on macOs Sierra.
Installing the confluent-kafka package works fine, no issues. The problem is when I try to install the avro package:
pip install confluent-kafka[avro]
I just get an error message from the bash, saying:
no matches found: confluent-kafka[avro]
How can I install this package? Anyone else that have managed to do it on mac?
Assuming you are not using bash (in my case it was zsh), the [] might mess with your shell. The following should solve this:
pip install "confluent-kafka[avro]"
For me this worked with the default install from pypi, no need for the github URL.
Try installing directly from github
pip install git+git://github.com/confluentinc/confluent-kafka-python.git
Solved! In my case it was python version
I was using python 3.10.1 version
Uninstall python 3.10.1 and python Launcher from add or remove programs
Download python 3.7.0 for x64 bit using this link or download from here Link
Now you can: pip install confluent-kafka[avro]

Unable to install python-levenshtein package on Mac using Python 3.6

I was trying to install the python-levenshtein library using terminal. However, I kept encountering errors. The Python version that I am using is Python 3.6 and the command I had been using to install the package is pip install python-levenshtein.
Could someone tell me what I am doing wrong?
Thank you.
For Anaconda users, it is better use the following command as it helped in my case:
conda install -c conda-forge python-levenshtein
Maybe your computer have both python2 and python3 installed, if that is the case, you should use pip3 install python-levenshtein.

Categories