Wie entferne ich Pakete, die mit älteren Versionen von Python/Pip installiert wurden?Python

Python-Programme
Anonymous
 Wie entferne ich Pakete, die mit älteren Versionen von Python/Pip installiert wurden?

Post by Anonymous »

Ich habe ein Problem mit meinen Paketen. Ich habe ein Paket mit Python 3.7 installiert und die aktuelle Version von Python auf meinem Computer ist 3.9. Daher kann ich das angegebene Paket nicht deinstallieren oder aktualisieren.

Code: Select all

ζ pip3 install --upgrade youtube-dl
Requirement already satisfied: youtube-dl in /usr/local/lib/python3.9/site-packages (2021.4.7)
Collecting youtube-dl
Downloading youtube_dl-2021.4.26-py2.py3-none-any.whl (1.9 MB)
|████████████████████████████████| 1.9 MB 551 kB/s
Installing collected packages: youtube-dl
Attempting uninstall: youtube-dl
Found existing installation: youtube-dl 2021.4.7
Uninstalling youtube-dl-2021.4.7:
Successfully uninstalled youtube-dl-2021.4.7
Successfully installed youtube-dl-2021.4.26
WARNING: You are using pip version 21.0.1; however, version 21.1.1 is available.
You should consider upgrading via the '/usr/local/opt/[email protected]/bin/python3.9 -m pip install --upgrade pip' command.

ζ youtube-dl --version
2021.04.01

ζ which pip3
/usr/local/opt/[email protected]/bin/pip3

ζ which youtube-dl
/Library/Frameworks/Python.framework/Versions/3.7/bin/youtube-dl
Wie kann

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post