One: Create a virtual environment related commands:
Create a virtual environment (mkvirtualenv):
1 mkvirtualenv environment name --python = python3 # noteworthy that later may not actually specify a version of python but not specified, the default is back python2
Delete the virtual environment (rmvirtualenv):
Environmental name rmvirtualenv deleted
Enter the virtual environment (workon):
workon # Double-click the table you can see all key virtual environment
workon virtual environment name # can enter the virtual environment
See all of the virtual environment:
Enter the virtual environment :( front (Django) represents Django has entered the virtual development environment)
Exit Virtual Environment (deactivate):
II: View virtual environment module
1: View all virtual environment (.virtualenvs /)
Where the blue file is the file of the virtual environment. .virtualenvs / indicates that the following queries with .virtualenv file.
2: look at the current production virtual environment module or configuration file (for example here to Django):
a: Django into the virtual environment :
python is generally used to include the contents of some of the relevant documents.
lib is a configuration environment
b: to enter the lib file:
Generally you create using the version that is what python python
c: module configuration file in the file site-packages
Here we can see that a pip and a series of integrated environmental template
Three: Add the modules you need to use (Django)
Here we use Django 1.8.2
1: Install Django 1.8.2
2: Check the installation of the module:
The installation is complete