Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

296
Views
Python/Apache/Server - Can't import modules

I have a executable python script that I want to run using apache. A simple print('hello') works fine, however it fails if the script imports some package. In this case it fails at 'import pandas'.

I'm using python version 3.5.2

I have installed pandas with pip3 install pandas, and the installation is successful. If I try again, I get: Requirement already satisfied: six>=1.5 in /usr/lib/python3/dist-packages (from python-dateutil>=2.5.0->pandas) (1.10.0)

I have tried to start the script with both #! /usr/bin/python and #! /usr/bin/env python

Why could it be that it doesn't work? Is there some sort of step by step guide to manage this?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

These two optiones worked for me: sudo apt-get install python3-pandas

or

sudo -H python3 -m pip install pandas

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!