bash: mkvirtualenv: command not found

后端 未结 11 1480
天命终不由人
天命终不由人 2020-12-02 06:15

After following the instructions on Doug Hellman\'s virtualenvwrapper post, I still could not fire up a test environment.

[mpenning@tsunami ~]$ mkvirtualenv          


        
11条回答
  •  再見小時候
    2020-12-02 06:57

    In order to successfully install the virtualenvwrapper on Ubuntu 18.04.3 you need to do the following:

    1. Install virtualenv

      sudo apt install virtualenv
      
    2. Install virtualenvwrapper

      sudo pip install virtualenv
      sudo pip install virtualenvwrapper
      
    3. Add the following to the end of the .bashrc file

      export WORKON_HOME=~/virtualenvs
      export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python
      source ~/.local/bin/virtualenvwrapper.sh
      
    4. Execute the .bashrc file

      source ~/.bashrc
      
    5. Create your virtualenv

      mkvirtualenv your_virtualenv
      

提交回复
热议问题