Today, I want to write a script that Nodejs download the Web page, and intend to implement it with Node-curl.
Run NPM Install Node-curl time, compile the time error, hint can not use python3.4, can only use python between 2.5~3.0.
Online said virtualenv can solve this multi-version python coexistence problem, such a good thing, hurry down to try it.
- CD/D C:\Python34\Scripts
- Easy_install virtualenv
Finished virtualenv, and now another version of Python, from the official network under a 2.7.9 loaded. The installation of the time to keep the default selection is good ~ ~
Create a PYTHON27 virtual environment to D:\python-vir
- Virtualenv-p C:\Python27\python.exe D:\python-vir
Activate the virtual ring
- CD/D D:\python-vir
- CD Scripts
- . \activate
The Activate.bat script sets the console environment variable so that the Python command that the console calls later executes the Python in the virtual environment
Deactivate.bat is the Restore console environment variable setting.
Reprint: http://blog.csdn.net/hyhnoproblem/article/details/42237773
Python uses a switch between different versions