Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pandas installation error
#1
I use VS Code, with Anaconda installer on Mac. So I tried using pandas package for the first time and I wasn't sure if I had the package or not. I ran the simple code to check if i had it installed
import pandas as pd
And the error comes
Error:
line 1, in <module> import pandas as pd ModuleNotFoundError: No module named 'pandas'
It also shows in the problems section
Error:
Unable to import 'pandas' pylint(import-error)
What can I do to install pandas?
pyzyx3qwerty
"The greatest glory in living lies not in never falling, but in rising every time we fall." - Nelson Mandela
Need help on the forum? Visit help @ python forum
For learning more and more about python, visit Python docs
Reply
#2
you need to install pandas
pip install pandas from command line
Reply
#3
It shows
pip install pandas
Requirement already satisfied: pandas in ./opt/anaconda3/lib/python3.7/site-packages (1.0.1)
Requirement already satisfied: pytz>=2017.2 in ./opt/anaconda3/lib/python3.7/site-packages (from pandas) (2019.3)
Requirement already satisfied: numpy>=1.13.3 in ./opt/anaconda3/lib/python3.7/site-packages (from pandas) (1.18.1)
Requirement already satisfied: python-dateutil>=2.6.1 in ./opt/anaconda3/lib/python3.7/site-packages (from pandas) (2.8.1)
Requirement already satisfied: six>=1.5 in ./opt/anaconda3/lib/python3.7/site-packages (from python-dateutil>=2.6.1->pandas) (1.14.0)
pyzyx3qwerty
"The greatest glory in living lies not in never falling, but in rising every time we fall." - Nelson Mandela
Need help on the forum? Visit help @ python forum
For learning more and more about python, visit Python docs
Reply
#4
Well I figured it out - had ran it in the wrong place.
Thanks Larz60+
pyzyx3qwerty
"The greatest glory in living lies not in never falling, but in rising every time we fall." - Nelson Mandela
Need help on the forum? Visit help @ python forum
For learning more and more about python, visit Python docs
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  pyarrow error when importing pandas sravva 1 943 Jun-06-2023, 05:09 PM
Last Post: snippsat
  Getting "SSL client not supported by this Python installation" error prabirsarkar 0 970 Mar-13-2023, 05:01 PM
Last Post: prabirsarkar
  pandas.errors.ParserError: Error tokenizing data. C error: Expected 9 fields in line Anldra12 9 15,378 Jun-15-2021, 08:16 AM
Last Post: Anldra12
  PIP Installation Error bhanukiran117 2 2,418 Apr-15-2020, 07:02 PM
Last Post: Larz60+
  Beginner - simple package installation error mefeng2008 0 1,734 Mar-13-2020, 09:17 AM
Last Post: mefeng2008
  Installation Error:Tribon conflicted with Python3.8? sam2016 12 5,710 Dec-10-2019, 05:11 AM
Last Post: sam2016
  2.7.8 Python installation error Benjipincus 2 3,273 Dec-16-2017, 02:14 PM
Last Post: snippsat
  Python3 installation and venp error sunilgt 1 3,893 Jul-25-2017, 01:29 AM
Last Post: nilamo
  Module Dependency installation error draems 10 10,269 Feb-12-2017, 08:18 AM
Last Post: wavic

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020