简体   繁体   中英

How to create a virtual environment in Ubuntu 20.04 of python 2.7?

I was able to make the virtual environment of python3 but not able to make of python2 .

which python2
/usr/bin/python2
python2 -V
Python 2.7.18
virtualenv --python=$(which python2) $path_of_new_venv_directory

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM