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

Python Programming for children 4-python environment and tools

編輯:Python

One 、Python Configuration and installation of environment ,Anaconda、jupyter and pycharm

Anaconda It is in a package manager and Environment Manager (conda) It's developed on the basis of . Data analysis , Many third-party packages are often used , and conda It can be installed well 、 And manage these packages . secondly , It can create and manage virtual environments .

Jupyter notebook and pycharm Are good development platforms , Especially for deep learning projects , occupy 90% above .

Jupyter notebook The main advantage of is that you can put code 、 Description text 、 The mathematical equations and the visual results of the program are all combined into one document .

Pycharm It is currently the most widely used integrated development environment , With coding assistance 、 Project code navigation 、 The code analysis 、 Easy to adjust and other functions .

1.Anaconda

Anaconda Contains conda、Python More than 180 Science packs and their dependencies . Download mirroring :

Index of /anaconda/archive/ | Tsinghua University open source software image station | Tsinghua Open Source Mirror

Anaconda Bring it with you after installation Jupyter.

2.pycharm

install pycharm2020.1.1 Above version .

Two 、python,Anaconda Package related concepts [1]

1.python package

package =“ Tools ”;

Download package = “ Buy tools ”;

Write program = " Make things with tools "( Program import Import )

2.Anaconda

Environmental Science = " Like a building , Assign a room in the building to all kinds of ‘ package ’ discharge , In every room ‘ package ’ They don't influence each other "

Activate the environment = “ Tell the computer , I'm going to use the... In this room ‘ package ’ To make things, so I have to go into this room ”

Remove environment = “ Now I don't need the things that I used to use in this room. Get it out and save computer space ”

Conda Creating an environment is equivalent to creating a virtual space to install these packages in this location , I don't need it. I can pack it and put it in the dustbin , At the same time, you can also select different programs according to the running environment of different programs conda Virtual environment to run .

such as env1 installed pytorch1.0,env2 installed pytorch1.2, Need to use 1.0 It's activated when it's time env1, Need to use pytorch edition 1.2 It's activated when it's time env2, In this way, you don't need to reinstall the environment one package at a time .

3、 ... and 、 common problem

All versions of python Install the image :

https://registry.npmmirror.com/binary.html?path=python/

pip Installation command :pip install [packagename] -i https://pypi.tuna.tsinghua.edu.cn/simple

python Package image source recommendation :

Alibaba cloud https://mirrors.aliyun.com/pypi/simple/

University of science and technology of China https://pypi.mirrors.ustc.edu.cn/simple/

douban (douban) http://pypi.douban.com/simple/

Tsinghua University Simple Index

Pycharm Change mirror source :

Enter the above 4 Image source addresses

Four 、 reference

[1]:Anaconda Use tutorial one ( Novice friendly ) - You know


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