-1

I installed the pkg used pip install yfinance and it give me already satisfied But when i import it, it said No moudle called yfinance I can confirm that it installed

location for yfinance:

c:\users\windows.10\appdata\local\programs\python\python37\lib\site-packages

location for jupyter:

c:\users\windows.10\appdata\local\programs\python\python37\lib\site-packages

and the sys path is::

'c\Users\Windows.10\ibm_coding\Numpy',
'C:\ProgramData\Anaconda3\python37.zip',
'C:\ProgramData\Anaconda3\DLLs',
'C:\ProgramData\Anaconda3\lib',
'C:\ProgramData\Anaconda3',
'',
'C:\Users\Windows.10\AppData\Roaming\Python\Python37\site-packages',
'C:\ProgramData\Anaconda3\lib\site-packages',
'C:\ProgramData\Anaconda3\lib\site-packages\win32',
'C:\ProgramData\Anaconda3\lib\site-packages\win32\lib',
'C:\ProgramData\Anaconda3\lib\site-packages\Pythonwin',
'C:\ProgramData\Anaconda3\lib\site-packages\IPython\extensions',
'C:\Users'

Jupyter can't find the package although it exists I tried to downlaod it forward in jupyter using:

!pip install yfinance

conda install  yfinance

But jupyter don't give me any results if i let it a hour or a day or a year it just still like that is there any real solution to this problem so it ends?

Conda dosen't show results

Vitalizzare
  • 4,496
  • 7
  • 13
  • 32
  • 2
    I'm not seeing how your question isn't a duplicate of many posts already here about yfinance installation You should read up on the use of Anaconda/conda. Because you choose Anaconda/conda as your primary package manager, you should be using `%conda install -c conda-forge yfinance` inside your `.ipynb` file, based on [here](https://anaconda.org/conda-forge/yfinance) and my comments about magic install commands [here](https://stackoverflow.com/questions/69149501/cannot-import-name-flowercommand-from-flower-command/76932284#comment135623093_76932284). – Wayne Aug 22 '23 at 12:32
  • Nothing change anacond didn't install it it still freezing like the image in my post – Hatem Abdeen Aug 22 '23 at 14:56
  • Then something is wrong. Can you run `%conda list` in your notebook and see it work? If not, then you aren't using the Jupyter connected to Anaconda/conda. Which looks to be the case since you say the place for Jupyter is `c:\users\windows.10\appdata\local\programs\python\python37\lib\site-packages`. You should be launching Jupyter from the Anaconda navigator and using that one so it is connected to conda. (And for future reference, that screenshot is hardly useful. We need to see more, or preferably you tell us about things clearly, like what kernel you are using, what code came above that.) – Wayne Aug 22 '23 at 15:31
  • the anaconda navigator dosen't open but when i run conda list it work perfectly there is no code above this code i just try to download yfinance before i code anything – Hatem Abdeen Aug 22 '23 at 16:03
  • Oh okay, so conda works there. Maybe you just need to link them, like described [here](https://stackoverflow.com/a/38880722/8508004). Anyway you can install `nb_conda_kernels` in the root conda environment? Otherwise, I would say if you haven't invested a lot in making conda environments, you should try completely uninstalling and reinstalling the Anaconda Distribution because you should be able to open Jupyter from inside the Anaconda Navigator if the Distribution was installed properly. Then I suspect the `%conda install` would work as it should be. – Wayne Aug 22 '23 at 16:09

0 Answers0