rmvirtualenv <name>不会删除env

时间:2016-08-13 18:40:11

标签: python virtualenv virtualenvwrapper

我是Python的初学者。

我试图通过在C:&gt; virtualenvs

下使用此命令来删除我之前创建的virtualenv
rmvirtualenv test

然后我得到以下

virtualenv“test”不存在。

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

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

1 个答案:

答案 0 :(得分:0)

我已经解决了这个问题。

考虑到您已经安装了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

那就是它。

相关问题