程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

Complete steps for Python installation and virtual environment establishment

編輯:Python

Catalog

Preface

One 、python install

Two 、 Build a virtual environment

3、 ... and 、 install jupyter notebook

summary

Preface

Python 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 install

python 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 environment

win+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 notebook

Activate the virtual environment

workon Virtual environment name

Check whether the installation is successful

pip list

start-up

jupyter notebook

jupyter Open browser automatically

summary

That'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 !



  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved