Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

297
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda