在将我的机器从macOS Mojave升级到macOS my之后,asdf没有正确设置python。
有关我的安装的基本信息如下:
asdf info
OS:
Darwin MacBook-Pro.local 21.2.0 Darwin Kernel Version 21.2.0: Sun Nov 28 20:28:54 PST 2021; root:xnu-8019.61.5~1/RELEASE_X86_64 x86_64
SHELL:
zsh 5.8 (x86_64-apple-darwin21.0)
ASDF VERSION:
v0.9.0
ASDF ENVIRONMENT VARIABLES:
ASDF_DIR=/usr/local/opt/asdf/libexec
ASDF INSTALLED PLUGINS:
golang https://github.com/kennyp/asdf-golang.git master 4aed736
helm https://github.com/Antiarchitect/asdf-helm.git master 87eef5a
nodejs https://github.com/asdf-vm/asdf-nodejs.git master ed34355
pnpm git@github.com:jonathanmorley/asdf-pnpm.git master 2349db8
python https://github.com/danhper/asdf-python.git master 57a4d72asdf正确地获取了它应该使用的python版本:
asdf current python
python 3.9.1 /Users/me/code/.tool-versions但是,当我测试python版本时,将运行已安装的系统python:
python --version
Python 2.7.17我多次试图重新安装asdf,但没有成功。当我试图重新安装python插件时,它告诉我它已经安装了:
asdf plugin-add python
Plugin named python already added当我试图重新安装这个特定版本的python时,它告诉我它已经安装了:
asdf install python 3.9.1
python 3.9.1 is already installed就像当我进入文件夹时没有触发asdf一样。有人也有同样的问题吗?
发布于 2022-01-08 14:12:28
通过从我家删除任何与asdf相关的内容并重新安装所有插件和所有版本,解决了这个问题:
rm -rf ~/.asdf
asdf plugin add python https://github.com/danhper/asdf-python.git
asdf install python 3.9.1https://stackoverflow.com/questions/70623967
复制相似问题