Bottom Page

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]
Quote
#2
How did you install, you should have used pip install pandas
Quote
#3
I installed using pip3 install pandas from Konsole terminal
Quote
#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?
Quote
#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.
Quote
#6
Installing those two dependencies solved my problem. Thanks for your help and on to the next.
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  error bars with dataframe and pandas Hucky 4 289 Apr-27-2020, 02:02 AM
Last Post: Hucky
  How to install tensorflow? It shows as error jaroslavtavgen 1 177 Apr-26-2020, 10:09 PM
Last Post: Larz60+
  pip install pandas ERROR pythondudu 6 6,047 Mar-26-2020, 07:49 PM
Last Post: snippsat
  pandas error Scott 2 1,079 Feb-05-2020, 07:22 PM
Last Post: Scott
  pandas DataReader error on all data sources glidecode 5 9,942 Sep-25-2019, 02:10 PM
Last Post: perfringo
  Key error when using adodbapi, azure and pandas mazamus 2 940 Sep-11-2019, 06:54 AM
Last Post: TomKom
  utf-8 error with pandas read_csv logues 0 1,549 Oct-23-2018, 05:25 PM
Last Post: logues
  Using pandas, index error fyec 1 1,877 Aug-01-2018, 09:25 AM
Last Post: volcano63
  Error: Slicing a single date from Pandas cheerful 0 824 Jul-22-2018, 08:09 PM
Last Post: cheerful
  PIP install error alex36540 15 21,838 Dec-16-2017, 01:09 PM
Last Post: alex36540

Forum Jump:


Users browsing this thread: 1 Guest(s)