How do I remove/delete a virtualenv?

前端 未结 16 996
感动是毒
感动是毒 2020-11-29 14:25

I created an environment with the following command: virtualenv venv --distribute

I cannot remove it with the following command: rmvirtualenv venv

16条回答
  •  萌比男神i
    2020-11-29 14:58

    You can remove all the dependencies by recursively uninstalling all of them and then delete the venv.

    Edit including Isaac Turner commentary

    source venv/bin/activate
    pip freeze > requirements.txt
    pip uninstall -r requirements.txt -y
    deactivate
    rm -r venv/
    

提交回复
热议问题