petalinux-config出错 以为是pyenv的问题,后发现不是,把pyenv的安装卸载总结如下:
折腾了半天发觉是安装了pyenv导致的python版本混乱,卸载后问题解决了。(卸载过程见https://github.com/pyenv/pyenv/blob/master/README.md#uninstalling-python-versions)
还需要将~/.bashrc中的相应代码行注释掉
$ echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bash_profile
$ echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile
还有pyenv init行
能正常config build。
Installation
$ git clone https://github.com/pyenv/pyenv.git ~/.pyenv
不同系统不同,注意
Zsh note: Modify your~/.zshenv
file instead of~/.bash_profile
.
Ubuntu and Fedora note: Modify your~/.bashrc
file instead of~/.bash_profile
.
Proxy note: If you use a proxy, exporthttp_proxy
andHTTPS_PROXY
too.
$ echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
$ echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
$ echo -e 'if command -v pyenv 1>/dev/null 2>&1; then
eval "$(pyenv init -)"
fi' >> ~/.bashrc
$ exec "$SHELL"
Uninstalling pyenv
simply remove the pyenv init
line from your shell startup configuration
To completely uninstall pyenv, perform step (1) and then remove its root directory. This will delete all Python versions that were installed under $(pyenv root)/versions/
directory:
rm -rf $(pyenv root)