pandas install error - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Data Science (https://python-forum.io/forum-44.html) +--- Thread: pandas install error (/thread-18481.html) |
pandas install error - loren41 - May-19-2019 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] RE: pandas install error - Larz60+ - May-20-2019 How did you install, you should have used pip install pandas
RE: pandas install error - loren41 - May-20-2019 I installed using pip3 install pandas from Konsole terminal RE: pandas install error - Larz60+ - May-20-2019 and if you run pip3 -V from command line, is it synced with proper version of pythonfinnaly, does python3 -V match expected version, and are you using python3 to execute script?
RE: pandas install error - loren41 - May-20-2019 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. RE: pandas install error - loren41 - May-20-2019 Installing those two dependencies solved my problem. Thanks for your help and on to the next. |