#Importing yfinance does not let me print anything
1 messages · Page 1 of 1 (latest)
Is it installed? (pip install yfinance)
If so, is it installed in the correct virtual environment
yep I have it all installed under miniconda
how are you running your script?
just running it on vscode
I think that it is just making it stop the program
I think your VS may not be using the same conda environment as the terminal you installed in
maybe try doing:
- conda env list
- find the environment for your project
- activate the environment (conda activate envname)
- conda list to see if package is installed
I only have one environemtn for python on my laptop
Ill still try
yeah I still have everything
conda base
if im not using any environemnt wouldn't that not let me run any code at all?
I don't really use conda, but I'm guessing you're running python without using the installed libraries attached to the conda environment
why would my other libraries work then, using pandas or datetime has no effect on it
hmm not sure, if that is the case then it may be an issue with yfinance and the version of python you're on.
maybe
i tried it on google colab and it seems to be working
but it is the same version of yfinance at least
didn't check python
maybe try installing a new package and importing it to confirm that yfinance is the problem?
Colorama is a small package u can try to install
3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] (Colab version)
3.11.6 | packaged by conda-forge | (main, Oct 3 2023, 10:29:11) [MSC v.1935 64 bit (AMD64)] (my version)
@pine schooner do i have to reinstall all my libraries if I redownload python?
not sure, but it shouldnt be too long. you can save the list into a requirements.txt beforehadn to be safe
with pip its pip freeze > requirements.txt
then pip install -r requirements.txt something like that
ill search up the conda equivalent using chatgpt