我正在使用以下命令安装 pyenv:
git clone pyenv/pyenv-virtualenv ~/.pyenv/plugins/pyenv-virtualenv
然后
echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bashrc
当我给出此命令时,出现错误
$ source ~/.bashrc
Command 'pyenv' not found, did you mean:
command 'p7env' from deb libnss3-tools (2:3.49.1-1ubuntu1.5)
command 'pyvenv' from deb python3-venv (3.8.2-0ubuntu2)
我的命令如下:
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
sudo apt-get install libc6-dev gcc
sudo apt-get install -y make build-essential zlib1g-dev libssl-dev libsqlite3-dev libbz2-dev libreadline-dev wget curl llvm
git clone https://github.com/yyuu/pyenv-virtualenv.git ~/.pyenv/plugins/pyenv-virtualenv