Preface
One 、python install
Two 、 Build a virtual environment
3、 ... and 、 install jupyter notebook
summary
PrefacePython By Guido of the Dutch Society for mathematical and computer science research · Van rosum On 1990 It was designed in the early 's , As a course called ABC A substitute for language .Python Provides efficient advanced data structure , It's also a simple and effective way of object-oriented programming . Now Python In the field of artificial intelligence , So today I will take you step by step to build Python Programming environment .
One 、python installpython Install to Python3.7.9 Version as an example , The installation steps of other versions are the same .
Python Official website
Two 、 Build a virtual environmentwin+r, open dos window
see python Is the installation successful
Tsinghua mirror :https://pypi.tuna.tsinghua.edu.cn/simple
Douban mirror image :https://pypi.douban.com/simple/
install virtualenv, Installation command :
pip install virtualenv -i https://pypi.tuna.tsinghua.edu.cn/simple
install virtualenvwrapper-win, Installation command :
pip install virtualenvwrapper-win -i https://pypi.tuna.tsinghua.edu.cn/simple
workon View virtual environment
Create environment command :
mkvirtualenv Environment name
The environment path can be modified by environment variables
Set up WORKON_HOME Change the path of the virtual environment
deactivate Exit virtual environment
3、 ... and 、 install jupyter notebookActivate the virtual environment
workon Virtual environment name
Check whether the installation is successful
pip list
start-up
jupyter notebook
jupyter Open browser automatically
summaryThat's what this issue is about Python Installation and establishment of virtual environment , Soldiers and horses go before straw and grain , Preparing the environment before writing code is the first step , The virtual environment will be used later python_stark Conduct Python Related code writing . Coming soon !
This is about Python This is the end of the article on installing and establishing a virtual environment , More about Python Please search the previous articles of the software development network or continue to browse the following related articles. I hope you can support the software development network in the future !
Catalog Running effect How t
Its in the computer python2.7、