Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pandas install error
Python package installed but gives dependency error on import of pandas.

Traceback (most recent call last):
File "/home/bob/Python_work_area/", line 9, in <module>
import pandas as pd
File "/usr/lib64/python2.7/site-packages/pandas/", line 19, in <module>
"Missing required dependencies {0}".format(missing_dependencies))
ImportError: Missing required dependencies ['pytz', 'dateutil']
[Finished in 0.2s with exit code 1]
[shell_cmd: python -u "/home/bob/Python_work_area/"]
[dir: /home/bob/Python_work_area]
[path: /usr/bin:/usr/lib64/qt5/bin:/usr/share/kf5:/usr/libexec:/bin:/usr/bin:/usr/local/bin:/usr/games:/usr/lib64/qt5/bin:/usr/lib64/qt4/bin:/home/bob/bin:/sbin:/usr/sbin]
How did you install, you should have used pip install pandas
I installed using pip3 install pandas from Konsole terminal
and if you run pip3 -V from command line, is it synced with proper version of python
finnaly, does python3 -V match expected version, and are you using python3 to execute script?
Both sync to python 3.6. Is there a way to verify that I am using python3 to execute script? My package mgr describes Sublime Text as python 3. I can do an import csv and that is verified.

I saw in the first error message sequence that I posted that I have Missing required dependencies ['pytz', 'dateutil']. I checked with my package manager and installed python3-dateutil and python3-pytz. This removed dateutil as a missing dependency, but pytz remains in the error message. Seems like a good clue, but not there yet.
Installing those two dependencies solved my problem. Thanks for your help and on to the next.

Possibly Related Threads…
Thread Author Replies Views Last Post
  strange error from pandas dataframe djf123 1 2,385 Jul-27-2020, 05:25 AM
Last Post: scidam
  error bars with dataframe and pandas Hucky 4 2,141 Apr-27-2020, 02:02 AM
Last Post: Hucky
  How to install tensorflow? It shows as error jaroslavtavgen 1 997 Apr-26-2020, 10:09 PM
Last Post: Larz60+
  pip install pandas ERROR pythondudu 6 15,945 Mar-26-2020, 07:49 PM
Last Post: snippsat
  pandas error Scott 2 4,178 Feb-05-2020, 07:22 PM
Last Post: Scott
  pandas DataReader error on all data sources glidecode 5 14,266 Sep-25-2019, 02:10 PM
Last Post: perfringo
  Key error when using adodbapi, azure and pandas mazamus 2 2,391 Sep-11-2019, 06:54 AM
Last Post: TomKom
  utf-8 error with pandas read_csv logues 0 2,719 Oct-23-2018, 05:25 PM
Last Post: logues
  Using pandas, index error fyec 1 3,236 Aug-01-2018, 09:25 AM
Last Post: volcano63
  Error: Slicing a single date from Pandas cheerful 0 1,635 Jul-22-2018, 08:09 PM
Last Post: cheerful

Forum Jump:

User Panel Messages

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