python - 使用 virtualenvwrapper 重命名环境

标签 python virtualenv virtualenvwrapper

我有一个名为 doors 的环境,我想将它重命名为 django 以获得 virtualenvwrapper .

我注意到如果我只是将文件夹 ~/.virtualenvs/doors 重命名为 django,我现在可以调用 workon django ,但环境仍然显示 (doors)hobbes3@hobbes3

最佳答案

你可以使用:

cpvirtualenv oldenv newenv
rmvirtualenv oldenv

所以在你的情况下:

cpvirtualenv doors django
rmvirtualenv doors

关于python - 使用 virtualenvwrapper 重命名环境,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9540040/

相关文章:

python - 无法为 Python 3.4 创建工作虚拟环境

python - 研究Python正则表达式

python - 如何使用map和filter来实现这个?

python - 为什么 re.findall() 在这种情况下返回一个空列表,而在另一个情况下返回一个包含空字符串的列表?

python - 实例化 Enthought 特征的默认实例

python - Vagrant、WSGI、virtualenv 和 TypeError : 'module' object is not callable

python - pip install PIL -E TICKETS-1 - 不支持 JPEG/PNG

python - 更新 : No module named virtualenvwrapper 后 python 和 virtualenvwrapper 出现问题

python - 如何卡住仅在虚拟环境中安装的软件包?

python - 无法在 OSX 10.11 El Capitan 上安装 virtualenvwrapper