virtualenv specifies the versioning method of the python interpreter

  • 2021-01-03 20:56:45
  • OfStack

Install virtualenv for the ubuntu system using the following command


sudo apt-get install python-virtualenv

When we use the virtualenv command to create a virtual environment, the default python interpreter is /usr/bin/python27 (a copy of this interpreter is then created), so how do we specify the version of the interpreter?

Use the parameter -ES13en


$ sudo virtualenv -p ~/anaconda3/bin/python test

Related articles: