python - Ruby 相当于 virtualenv?

有没有类似于 Python 实用程序的东西 virtualenv ?

基本上,它允许您将 Python 包安装到沙盒环境中,因此 easy_install django 不会进入系统范围的站点包目录,而是会进入 virtualenv 创建的目录。

例如:

$ virtualenv test
New python executable in test/bin/python
Installing setuptools...cd .........done.
$ cd test/
$ source bin/activate
(test)$ easy_install tvnamer
Searching for tvnamer
Best match: tvnamer 0.5.1
Processing tvnamer-0.5.1-py2.5.egg
Adding tvnamer 0.5.1 to easy-install.pth file
Installing tvnamer script to /Users/dbr/test/bin

Using /Library/Python/2.5/site-packages/tvnamer-0.5.1-py2.5.egg
Processing dependencies for tvnamer
Finished processing dependencies for tvnamer
(test)$ which tvnamer 
/Users/dbr/test/bin/tvnamer

RubyGems 有类似的东西吗?

最佳答案

RVM更接近于 virtualenv 的工作方式,因为它允许您对不同的 ruby​​ 版本及其 gem 等进行沙箱处理。

https://stackoverflow.com/questions/486995/

相关文章:

linux - 目录中所有文件内容的总大小

linux - 为什么 find -exec mv {} ./target/+ 不起作用?

python - 有没有类似 RStudio for Python 的东西?

linux - 如何在不停止的情况下在 Docker 容器中运行 Nginx?

python - 查找列表中最常见的元素

shell - 如何在后台运行命令并且没有输出?

python - 如何检查平面列表中是否有重复项?

linux - 如何设置 curl 以永久使用代理?

python - Python中的多级 'collection.defaultdict'

linux - 如何指定编辑器来打开 crontab 文件? "export EDITOR=vi"不