@torsten_156: Wie sicher bist Du Dir, dass das ``pip`` zu dem Python gehört mit dem Du das Programm am Ende versuchst auszuführen? Oder anders: Das ist wohl nicht das passende ``pip`` gewesen.
Am besten man ruft das direkt über das Python auf für das man installieren will. Also beispielsweise ``python3.9 -m pip install beautifulsoup4`` — oder wie auch immer Du Dein Python 3.9.1. startest.
Please call it what it is: copyright infringement, not piracy. Piracy takes place in international waters, and involves one or more of theft, murder, rape and kidnapping. Making an unauthorized copy of a piece of software is not piracy, it is an infringement of a government-granted monopoly.
@torsten_156: Das mit der Versionsnummer war nur ein Beispiel. Du hast offensichtlich mehr als ein Python installiert und BeautifulSoup 4 für eine anderes Python installiert als das mit dem Du Dein Programm versuchst auszuführen. Mehr kann man da per Ferndiagnose mit den vorhandenen Informationen nicht zu sagen.
Please call it what it is: copyright infringement, not piracy. Piracy takes place in international waters, and involves one or more of theft, murder, rape and kidnapping. Making an unauthorized copy of a piece of software is not piracy, it is an infringement of a government-granted monopoly.
Habe das jetzt mal geprüft und musste feststellen, dass Spyder eine eigene Python-Installation (3.6) angelegt hat. Somit hatte ich in der Tat eine weitere Versionen (3.9.1) von Python auf meinem Rechner. Nach kurzer Recherche habe ich eine Seite gefunden, die beschreibt, wie man in Spyder auch eine weitere Installation als Python-Interpreter nutzen kann. In Spyder kann man unter "Werkzeuge->Einstellungen->Python-Interpreter" einen Pfad zu einer weiteren Installation angeben. Nach der Angabe des Pfades zur zweiten Python-Installation klappt es nun.