4

macOS Monterey 12.3 Beta 升级之后 Python 没了 这可如何是好

 2 years ago
source link: https://www.v2ex.com/t/834114
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

V2EX  ›  Python

macOS Monterey 12.3 Beta 升级之后 Python 没了 这可如何是好

  darkaforest · 6 小时 2 分钟前 · 272 次点击

发现每次在终端打 cd 的时候都会报一个错:

image.png

执行 which python 也找不到

image.png

进去 /usr/bin 发现有一堆 python.x 就是没有 python

image.png

但是到目前为止未发现有任何异常,除了每次 cd 都会报错,但是确实又 cd 进去了……

3 条回复    2022-02-16 02:41:07 +08:00

BrettD

BrettD      5 小时 43 分钟前 via iPhone

Homebrew 装一个 Python 啊

karronqiu

karronqiu      5 小时 5 分钟前 via Android

应该是你环境变量里面用了 python ,看看.zshrc 或者别的文件里面有没有,删掉就好了。现在应该都是用 python3 了,python2 不再用了

yyfearth

yyfearth      4 小时 8 分钟前

macOS 12.3 移除了自带的 python2
肯定是你的 zshrc 或者 bashrc 里面用了 python 了 如果不需要移除就是
如果需要 homebrew 自己安装一个就好

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK