Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

299
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda