petalinux-config出错 觉得是pyenv的问题,后发现不是,把pyenv的安装卸载总结以下:python
折腾了半天发觉是安装了pyenv致使的python版本混乱,卸载后问题解决了。(卸载过程见https://github.com/pyenv/pyenv/blob/master/README.md#uninstalling-python-versions)linux
还须要将~/.bashrc中的相应代码行注释掉git
$ echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bash_profile $ echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile
还有pyenv init行
能正常config build。github
不一样系统不一样,注意
Zsh note: Modify your file instead of .
Ubuntu and Fedora note: Modify your file instead of .
Proxy note: If you use a proxy, export and too.
$ git clone https://github.com/pyenv/pyenv.git ~/.pyenv~/.zshenv~/.bash_profile~/.bashrc~/.bash_profilehttp_proxyHTTPS_PROXY
$ 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\n eval "$(pyenv init -)"\nfi' >> ~/.bashrc
$ exec "$SHELL"
simply remove the pyenv init
line from your shell startup configurationshell
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:bash
rm -rf $(pyenv root)