可以使用pip3 install virtualenv
的virtualenv命令pip3 install virtualenv
来安全地创建python2环境(例如EG python3 -m virtualenv -p "$(which python2)" venv2
,反之亦然吗?
Yes, I use that all the time. I have one version of virtualenv
and create virtual environments for many Python versions from 2.7 to 3.6 and also for PyPy.
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.