简体   繁体   中英

No Module Named

I've recently been trying to follow a Data Science Project course online to get more accustomed with projects. I have three import statements right now, and I've tried basically every variation of pip install in both the Python terminal and my CPU terminal, but it still comes up as ModuleNotFoundError: No module named 'yfinance'. I've looked online for solutions, but can't seem to find any that address this problem. Any ideas as to what this could be?

import yfinance as yf import streamlit as st import pandas as pd

I had to run the following command:

python3 -m pip install yfinance

The -m tells it to install the module.

Just make sure you are using right command for the version of python terminal you are using and do apt-get update.

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