Python Import Error ModuleNotFoundError No Module Named Pandas in Ubuntu Linux

preview_player
Показать описание
Python Import Error No Module Named Pandas in Ubuntu Linux
Module Not Found Error : No Module Named Pandas in Python Ubuntu Linux
ModuleNotFoundError: No module named 'pandas'
To install Pandas python3 library in Ubuntu linux.

Install Python3 and Python3-pip
sudo apt-get install python3 python3-pip

install pandas using pip3
pip3 install pandas

open python3 in interpreter mode to validate
import pandas as pd
Рекомендации по теме
Комментарии
Автор

Why it says Requirement already satisfied

ashutoshshukla
Автор

Hey I can't import pip packages on terminal ( I can in python IDE )
ie using python -m mod
I figured it was because of PYTHONPATH which was empty. So I added the paths in sys.path to it. Still it shows module not found.
Please help

ganesh
Автор

pip3 install pandas
Traceback (most recent call last):
File "/usr/bin/pip3", line 9, in <module>
from pip import main
ImportError: cannot import name 'main'


I'm getting tis mesaage after sing this command: pip3 install pandas


Please solve this.

nileshkumar
Автор

:~$ python3
Python 3.6.9 (default, Apr 18 2020, 01:56:04)
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pandas as pd
>>> df = pd.DataFrame({'a':[3, 4], 'b':[5, 6]}, ind = [1, 2])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'pandas' has no attribute 'DataFrame'
>>>

marialeaotech
join shbcf.ru