Linux“which virtualenv-2.7”显示重复路径

Linux“which virtualenv-2.7”显示重复路径

我认为我在尝试安装 ruby​​ 时弄乱了一些组件,而且virtualenv-2.7似乎没有损坏。

我甚至不确定我是否正确地描述了问题,因为我无法找出问题所在,更不用说解决方案了。它不在bash_profile(基于我有限的理解,这是我唯一真正的线索)。我甚至不知道在哪里可以找到它,也不知道该搜索什么。

运行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/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)

我在尝试安装时发现了这一点certbot

$ sudo ./certbot-auto --debug renew
软件包 python27-pip-6.1.1-1.23.amzn1.noarch 已安装且为最新版本
无需执行
创建虚拟环境...
./certbot-auto:第 864 行:virtualenv:未找到命令

我该如何修复此问题?卸载viartualenv-2.7并重新安装是否有帮助?如何解决?

相关内容