使用命令“lsb_release -a”,没有可用的 LSB 模块。分销商 ID: Ubuntu描述:Ubuntu 14.04.5 LTS发布: 14.04代号:可信赖我关注了这个页面, https://github.com/pyenv/pyenv#basic-github-checkout但是安装失败。克隆https://github.com/pyenv/pyenv添加命令 $ echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bash_profile$ echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile$ echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.bash_profilesource ~/.bash_profile 返回:没有这样的文件或目录还有,我的echo "$PATH"是/home/vagrant/.pyenv/bin:/home/vagrant/.rbenv/plugins/ruby-build/bin:/home/vagrant/.rbenv/shims:/home/vagrant/.rbenv/bin:/home/vagrant/.pyenv/bin:/home/vagrant/.rbenv/plugins/ruby-build/bin:/home/vagrant/.rbenv/shims:/home/vagrant/.rbenv/bin:/home/vagrant/.pyenv/bin:/home/vagrant/.rbenv/plugins/ruby-build/bin:/home/vagrant/.rbenv/shims:/home/vagrant/.rbenv/bin:/home/vagrant/.rbenv/plugins/ruby-build/bin:/home/vagrant/.rbenv/shims:/home/vagrant/.rbenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin我该如何解决这个问题?这也是我的~/.bash_profile下面...[[ -f ~/.bashrc ]] && 源 ~/.bashrc导出 PYENV_ROOT="$HOME/.pyenv"导出路径="$PYENV_ROOT/bin:$PATH"如果命令 -v pyenv 1>/dev/null 2>&1; 然后eval "$(pyenv init -)"菲
2 回答
jeck猫
TA贡献1909条经验 获得超7个赞
这个错误是因为.bashrc
文件不存在。此外,您似乎正在向该文件添加pyenv
环境变量~/.bash_profile
并尝试获取该.bashrc
文件。
尝试获取您修改过的文件
source ~/.bash_profile
或使用更改重新加载外壳
exec $SHELL
添加回答
举报
0/150
提交
取消