So I'm having this weird issue.

I just installed server 18.04.1 LTS. The purpose of this server is to run scheduled Python scripts.

I can run my script just fine when authenticated with the user-account created during installation. But it won't run when scheduled with CRON (sudo crontab -e).

So... I set root password, authenticate and try running script and receive error "ModuleNotFoundError: No module named 'pandas'". So... I install pandas (sudo apt-get install python-pandas) and re-run. Same error

  • Please add output of pip freeze | grep pandas, su -c "pip freeze | grep pandas" and apt-cache policy python-pandas to the question. – N0rbert Jan 18 at 21:39

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.