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

309
Visualizações
ImportError: No module named 'flask.ext'

When I import a Flask extension like this, it works fine:

from flask_module import Module

So the extension is installed correctly.

But whenever I try to import a Flask extension like this:

from flask.ext.module import Module

I get the following error: ImportError: No module named 'flask.ext'

What is going wrong here?

I'm not sure if this information is useful but anyway:

  1. I haven't found extensions that do work in the last way
  2. I use Windows 10, Python3.5 and Flask 1.0.2
  3. I'm in a virtual envirionment
over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

The "flask.ext" style of naming/importing modules has been deprecated for a number of years now. You should use the first style you described instead.

As for the suggestion that you install your flask packages globally, this somewhat defeats the purpose of using a venv in the first place. It makes it impossible to use pip freeze --local > requirements.txt to only save relevant packages, opening you up to package version conflicts.

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