[Python] I'm trying to import the following but the error log keeps saying (report Missing...

Discussão em 'Python' iniciado por Stack, Janeiro 29, 2025.

  1. Stack

    Stack Membro Participativo

    img_1 Img_2 I'm trying to build an application that will summarize moderately long texts in 60 words or less. But 'flask', 'requests', and 'transformers' are underlined with a wave line. I've tried import the packages but an error keeps popping up.

    from flask import Flask, jsonify, request
    import requests
    from transformers import pipeline

    • the error that keeps popping up.

    A Import "flask" could not be resolved Pylance (reportMissing|mports) [Ln 1, Col 6]
    A Import "requests" could not be resolved from source Pylance (reportMissingModuleSource) [Ln 2, Col 8]
    A Import "transformers" could not be resolved Pylance (reportMissinglmports) [Ln 3, Col 6]

    Continue reading...

Compartilhe esta Página