How do I remove/delete a virtualenv?

前端 未结 16 1019
感动是毒
感动是毒 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条回答
  •  心在旅途
    2020-11-29 14:52

    step 1: delete virtualenv virtualenvwrapper by copy and paste the following command below:

    $ sudo pip uninstall virtualenv virtualenvwrapper
    

    step 2: go to .bashrc and delete all virtualenv and virtualenvwrapper

    open terminal:

    $ sudo nano .bashrc
    

    scroll down and you will see the code bellow then delete it.

    # virtualenv and virtualenvwrapper
    export WORKON_HOME=$HOME/.virtualenvs
    export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3
    source /usr/local/bin/virtualenvwrapper.sh
    

    next, source the .bashrc:

    $ source ~/.bashrc
    

    FINAL steps: without terminal/shell go to /home and find .virtualenv (I forgot the name so if your find similar to .virtualenv or .venv just delete it. That will work.

提交回复
热议问题