My python 2.7 script works on my Ubuntu system if I call it using
sudo python [filename].py
or from a bash script using
sudo ./[bashscriptname].sh
But if I call it from Pycharm I get oauth errors, and from the command prompt
python [filename].py
throws an error on the 'import pandas' line:
ImportError: Missing required dependencies ['numpy', 'pytz']
I've tried
- pip uninstall then pip install for pandas, numpy, and scipy as noted in Python Pandas - Missing required dependencies ['numpy'] 1
- the above using flags --upgrade and --user to try to get the packages to apply to my user account rather than root.
- deleting all files with .pyc in the directory as in ImportError: Missing required dependencies ['numpy']
- Adding PATH="${PATH}:/path/to/user/python/packages and PYTHONPATH="${PYTHONPATH}:/path/to/user/python/packages" in my .bashrc file
But nothing seems to work.
pip list
Shows all the necessary pandas, numpy, pytz, and oauth packages.
I've a noob who has spent nearly a day on this--help would be very greatly appreciated!!