Wie kann ich Python@2 von Homebrew neu installieren?

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Wie kann ich Python@2 von Homebrew neu installieren?

by Anonymous » 25 Aug 2025, 15:35

Ich hatte Probleme mit OpenSSL und Python@2 mit Brew, die hier erklärt haben (ungelöst). Die dokumentierte Problemumgehung, um Python und OpenSSL neu zu installieren

Code: Select all

brew install python@2
Error: No available formula with the name "python@2"
==> Searching for a previously deleted formula (in the last month)...
Warning: homebrew/core is shallow clone. To get complete history run:
git -C "$(brew --repo homebrew/core)" fetch --unshallow

python@2 was deleted from homebrew/core in commit 028f11f9e:
python@2: delete (https://github.com/Homebrew/homebrew-core/issues/49796)
EOL 1 January 2020.
We gave it 1 month more to live so that people had time to migrate.
All in all, developers had 11 years to do their migration.
You can use the `brew extract` command and maintain python@2 in your own
tap if necessary:
https://docs.brew.sh/How-to-Create-and-Maintain-a-Tap

To show the formula before removal run:
git -C "$(brew --repo homebrew/core)" show 028f11f9e^:Formula/[email protected]

If you still use this formula consider creating your own tap:
https://docs.brew.sh/How-to-Create-and-Maintain-a-Tap
< /code>
Leider habe ich noch eine Reihe von Brauformeln, die von Brews Python@2 abhängen. Dazu gehören AWSCLI 
, letsencrypt , pr SSHUTTLE z. B.

Code: Select all

aws
zsh: /usr/local/bin/aws: bad interpreter: /usr/local/opt/python@2/bin/python2.7: no such file or directory
Ich weiß nicht, wie man diesen Gebräuxtraktionsbefehl verwendet. Es braucht eine Formel und einen Wasserhahn. Ich stelle mir vor, die Formel wäre python@2 . Ich bin mir nicht sicher, was der Tipp sein müsste.

Code: Select all

brew reinstall awscli
), das AWS -Befehle ausführt, gibt immer noch Fehler.

Code: Select all

aws
/usr/local/Cellar/awscli/2.0.0/libexec/lib/python3.8/site-packages/jmespath/visitor.py:32: SyntaxWarning: "is" with a literal. Did you mean "=="?
if x is 0 or x is 1:
/usr/local/Cellar/awscli/2.0.0/libexec/lib/python3.8/site-packages/jmespath/visitor.py:32: SyntaxWarning: "is" with a literal. Did you mean "=="?
if x is 0 or x is 1:
/usr/local/Cellar/awscli/2.0.0/libexec/lib/python3.8/site-packages/jmespath/visitor.py:34: SyntaxWarning: "is" with a literal. Did you mean "=="?
elif y is 0 or y is 1:
/usr/local/Cellar/awscli/2.0.0/libexec/lib/python3.8/site-packages/jmespath/visitor.py:34: SyntaxWarning: "is" with a literal. Did you mean "=="?
elif y is 0 or y is 1:
/usr/local/Cellar/awscli/2.0.0/libexec/lib/python3.8/site-packages/jmespath/visitor.py:260: SyntaxWarning: "is" with a literal. Did you mean "=="?
if original_result is 0:
usage: aws [options]   [ ...] [parameters]
To see help text, you can run:

aws help
aws  help
aws   help
aws: error: the following arguments are required: command

Top