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

Traceback (most recent call last):
File "/home/bob/Python_work_area/csv_crime_test_2.py", line 9, in <module>
import pandas as pd
File "/usr/lib64/python2.7/site-packages/pandas/__init__.py", 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/csv_crime_test_2.py"]
[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]
Reply
#2
How did you install, you should have used pip install pandas
Reply
#3
I installed using pip3 install pandas from Konsole terminal
Reply
#4
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?
Reply
#5
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.
Reply
#6
Installing those two dependencies solved my problem. Thanks for your help and on to the next.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  pip install pandas ERROR pythondudu 7 33,397 May-24-2022, 06:14 AM
Last Post: Marya_475
  strange error from pandas dataframe djf123 1 4,034 Jul-27-2020, 05:25 AM
Last Post: scidam
  error bars with dataframe and pandas Hucky 4 4,225 Apr-27-2020, 02:02 AM
Last Post: Hucky
  How to install tensorflow? It shows as error jaroslavtavgen 1 1,955 Apr-26-2020, 10:09 PM
Last Post: Larz60+
  pandas error Scott 2 6,224 Feb-05-2020, 07:22 PM
Last Post: Scott
  pandas DataReader error on all data sources glidecode 5 18,158 Sep-25-2019, 02:10 PM
Last Post: perfringo
  Key error when using adodbapi, azure and pandas mazamus 2 3,941 Sep-11-2019, 06:54 AM
Last Post: TomKom
  utf-8 error with pandas read_csv logues 0 3,863 Oct-23-2018, 05:25 PM
Last Post: logues
  Using pandas, index error fyec 1 4,675 Aug-01-2018, 09:25 AM
Last Post: volcano63
  Error: Slicing a single date from Pandas cheerful 0 2,539 Jul-22-2018, 08:09 PM
Last Post: cheerful

Forum Jump:

User Panel Messages

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