What if application a requires Jinja 2.7 and application B needs Jinja 2.6? You can create different virtual environments for different applications at this time.
In this case, each app may need to have a "standalone" Python runtime environment. Virtualenv is a python run environment that is used to create a "quarantine" for an application.
1 PIP3 Install Virtualenv
2 virtualenv-p c:\python35\python3.exe--no-site-packages ENV35 (remember that the virtual Python environment you created at this time is not any third-party package ()
3 CD ENV35
4 Activating a virtual environment
./scripts/activate
5 You can install the third-party package you want to install at this time (for example, Django)
Pip Install Django
6 Exiting the virtual environment
deactivate
补充:在虚拟环境,使用django
cd d:\django_project
django-admin startproject mysite
CD MySite
Python manage.py runserver 127.0.0.1:8080
[Oldboy] [First knowledge of Django] Create a virtual (clean) Python environment [0]