【问题标题】:rmvirtualenv <name> does not remove a envrmvirtualenv <name> 不会删除环境
【发布时间】:2016-12-20 12:34:03
【问题描述】:

我是 Python 初学者。

我正在尝试通过在 C:>virtualenvs 下使用此命令删除我之前创建的 virtualenv

rmvirtualenv test

然后我得到了以下内容

virtualenv“测试”不存在。

我仍然可以看到 virtualenvs 下列出的目录。我在windows平台,已经安装了virtualwrapper-win。

请建议我如何使用上述命令摆脱该环境。

【问题讨论】:

  • 你确定你用 virtualenvwrapper 创建了虚拟环境吗?
  • @mic4ael 不,我没有。那个虚拟环境是先创建的,然后我直接在C盘下安装了virtualenvwrapper。
  • @Harrison 感谢您的链接。
  • 已修复。非常感谢你们。

标签: python virtualenv virtualenvwrapper


【解决方案1】:

我已经解决了这个问题。

考虑到你已经安装了 virtualenvwrapper-win(如果是 Windows)

步骤是——

1.Go to directory 'virtualenvs' (where all the envs are listed)
2.Make an env by using this command -- mkvirtualenv test (where test is a env name in my case)
3. Use this command  -- workon test
4. Deactivate test
5. To remove test use this command -- rmvirtualenv test

就是这样。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-08-05
    • 1970-01-01
    • 1970-01-01
    • 2014-11-10
    • 2019-04-26
    • 1970-01-01
    相关资源
    最近更新 更多