How to build python Development Environment for virtualenv
This article introduces virtualenv how to build python development environment, the content is very detailed, interested friends can refer to, hope to be helpful to you.
Any one can install virtualenv on your system. It may even be in your package management. If you are using Ubuntu, try:
$sudo apt-get install python-virtualenv
If there are multiple python development environments on the machine!
1. Create a virtual environment
[root@hostnfsd: / myproject_exec/django-blog-tutorial] $virtualenv-p / usr/local/python3.4/bin/python3.4 env #-p specifies the python version. If not, the default Python version of the system is called.
2 activate the environment
[root@hostnfsd: / myproject_exec/django-blog-tutorial] $. Env/bin/activate
3 check the version: at this time, the virtual environment is the environment matched with the python3.4 version.
(env) [root@hostnfsd: / myproject_exec/django-blog-tutorial] $python-V
Python 3.4.6
(env) [root@hostnfsd: / myproject_exec/django-blog-tutorial] $pip-V
Pip 9.0.1 from / myproject_exec/env/lib/python3.4/site-packages (python3.4)
Sometimes there will be all kinds of problems in the virtual environment, so use the higher version of virtualenv
On how to build virtualenv python development environment to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.