Linux“哪个virtualenv-2.7”显示重复path

我想我尝试安装ruby时弄乱了一些组件,而不是virtualenv-2.7似乎被破坏。

我甚至不确定我是否正确地描述了这个问题,因为我无法弄清楚这个问题,更不用说解决问题了。 这不是在bash_profile (根据我的有限理解,我唯一真正的领导)。 我不知道还有什么可以看,什么search。

运行哪个virtualenv-2.7导致:

 $ which virtualenv-2.7 /usr/bin/which: no virtualenv-2.7 in (/home/ec2-user/.rbenv/shims:/home/ec2-user/.rbenv/shims:/home/ec2-user/.rbenv/shims:/home/ec2-user/.rbenv/shims:/home/ec2-user/.rbenv/shims:/home/ec2-user/.rbenv/shims:/home/ec2-user/.rbenv/shims:/home/ec2-user/.rbenv/shims:/home/ec2-user/.rbenv/shims:/home/ec2-user/.rbenv/shims:/home/ec2-user/.rbenv/shims:/home/ec2-user/.rbenv/shims:/home/ec2-user/.rbenv/shims:/home/ec2-user/.rbenv/shims:/home/ec2-user/.rbenv/shims:/home/ec2-user/.rbenv/shims:/home/ec2-user/.rbenv/shims:/home/ec2-user/.rbenv/shims:/home/ec2-user/.rbenv/shims:/home/ec2-user/.rbenv/shims:/home/ec2-user/.rbenv/shims:/home/ec2-use ... nv/shims:/home/ec2-user/.rbenv/shims:/home/ec2-user/.rbenv/shims:/home/ec2-user/.rbenv/shims:/home/ec2-user/.rbenv/shims:/home/ec2-user/.rbenv/shims:/home/ec2-user/.rbenv/shims:/home/ec2-user/.rbenv/shims:/home/ec2-user/.linuxbrew/bin:/home/ec2-user/.linuxbrew/bin:/usr/local/rvm/gems/ruby-2.3.3/bin:/usr/local/rvm/gems/ruby-2.3.3@global/bin:/usr/local/rvm/rubies/ruby-2.3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/aws/bin:/usr/local/rvm/bin:/home/ec2-user/.local/bin:/home/ec2-user/bin) 

结束于

…:/home/ec2-user/.rbenv/shims:/home/ec2-user/.linuxbrew/bin:/home/ec2-user/.linuxbrew/bin:/usr/local/rvm/gems/ruby -2.3.3 /斌:/usr/local/rvm/gems/ruby-2.3.3@global/bin:/usr/local/rvm/rubies/ruby-2.3.3/bin:在/ usr / local / bin目录: /bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/aws/bin:/usr/local/rvm/bin:/home/ec2-user/.local/bin :/家庭/ EC2用户/箱)

我发现这试图安装certbot

$ sudo ./certbot-auto –debug续约
软件包python27-pip-6.1.1-1.23.amzn1.noarch已经安装和最新版本
没事做
创build虚拟环境…
./certbot-auto:第864行:virtualenv:找不到命令

我该如何解决? 将只是卸载viartualenv-2.7和重新安装它的帮助,以及如何?