1.python Environment Configuration - Basics python

         工欲善其事必先利其器, python learn first of all to do is configure the python environment. Pycharm configuration environment only need to download and install the package to Anaconda two, please keep up the pace I have, step by step operation.

 

Install anaconda install pycharm

The important thing to say three times:

Install anaconda install pycharm

Install anaconda install pycharm

Install anaconda install pycharm

 

A. Download / Install Anaconda (supports Linux, Mac, Windows three major platforms to windows, for example)

        1. Download : https://www.anaconda.com/distribution/#download-section

Download anaconda

         Download the 3.7 version, many small partners are entangled in the beginning to learn, in the end should learn python2.x version or python3.x version, after all, 2.x and 3.x versions there are differences. Personal suggestion is to learn 3.x versions 2.x version since 2020 will not be renewed, would not have to re-start to learn 3.x, this time not as a little more time with your Gay Friend of it.

 

         Please Anaconda according to their own version of the windows operating system, download the corresponding, if the operating system is 64-bit then please download: 64-bit Graphical Installer; if the operating system is 32-bit then please download: 32-bit Graphical Installer can be. There may be little friends will ask Anaconda is a hell? Direct opening Portal: What Anconda that? What is the use?

 

        2.Anconda installation (fool installation)

        Since my operating system is win7 - 32 bits, so I downloaded the 32-bit Graphical Installer. Double-click 32-bit Graphical Installer.exe start the installer

The first step in installing anacondaStep by anacondaThe third step is to install anacondaThe fourth step by anacondaThe fifth step by anacondaThe sixth step installation anaconda

 

         How to prove has been installed successfully: cmd window directly enter python, if the following notice, that means Anaconda installation was successful:

anaconda installation is complete

 

        二.下载安装PyCharm(同时支持 Linux,Mac,Windows三大平台,以windows为例)

        1.下载Pycharm开发工具,下载地址:https://www.jetbrains.com/pycharm/download/?_ga=2.116564805.2101547578.1567820560-1574792490.1567820560#section=windows

pycharm Download

 

        Professional是专业版本,Community 是社区版本,两者有什么区别?Professional比 Community 功能更加强大,所以Professional可以免费试用,要收费。Community是免费使用的。

Why pycharm Pro

        直接下载Professional专业版本,至于如何激活,文章后面会一步一步讲解

 

        2.安装Pycharm(傻瓜式安装)

The first step in installing pycharmThe second step installation pycharmThe third step is to install pycharmThe fourth step installation pycharmThe fifth step installation pycharm

 

        3.激活Pycharm(嗯~好像有那么一点难度)

        a.激活Pycharm,需要修改系统配置文件 host (注意:hosts 文件没有后缀) ,那么如何找到系统中的host文件:

                 Windows:C:\Windows\System32\drivers\etc\hosts

                 Linux:/etc/hosts

                 Mac:/etc/hosts

        为了避免操作失误,首先对hosts文件复制粘贴拷贝一份作为备份。使用任意一款编辑器打开hosts文件,推荐使用Notepad++(这是一款专业的代码编辑器很好用,直接百度搜索下载即可),使用NotePad++打开hosts文件内容如下:

        在文件的最后插入一行代码:0.0.0.0 account.jetbrains.com (请注意中间的空格,一个字符都不能错,如果怕写错,请对下面代码直接复制粘贴)

       修改完hosts文件之后记得保存,让修改生效。可以尝试保存关闭文件后,在使用Notepad++打开hosts文件,检查hosts文件修改是否生效,如果hosts没有修改或者修改的内容有错误会造成Pycharm无法激活,激活的时候会报错:this license **** has been cancelled 。请仔细检查hosts内容修改是否成功。

 

        如果始终提示this license **** has been cancelled 这个错误,直接给你提供一个详细的传送门:关于pycharm安装过程中 hosts 文件的正确配置流程

 

        b.注册Pycharm激活码

        注册地址:http://idea.lanyus.com/,这个地址原本可以直接获取到pycharm的注册码。貌似在2019年06.01之前还能用,现在被封杀了,别急着shit!道高一尺,魔高一丈!我这里有一些备用的注册码也可以直接使用(请挤一个比哭还难看的笑给我瞧瞧):

Registration Pycharm activation code

 

        c.运行Pycharm填写激活码

        启动Pycharm,安装完之后会有两个Pycharm图标,如果不知道启动哪一个,直接在开始菜单中找到Pycharm运行即可。

 

Start pycharm

pycharm start the process Step

        一路狂飙 next,来到填写激活码页面,勾选选项如下图所示: Activation code  我直接复制用的上面的 激活码一 ,大家填写激活码的时候直接复制上面任一一个激活码都可以,如果不行就换一个激活码。如果出现报错:this license **** has been cancelled  。请回到步骤1仔细检查自己的hosts文件是否修改成功,99.99%都是hosts文件造成。

Pycharm activation codepycharm create project

pycharm configuration environmentThe second step configuration environment pycharm

        So far, Anaconda and Pycharm we have been successfully installed. This article was written I was nearly to the dog, do not know you do not keep up with the rhythm? Next explain in detail how to set up templates and create your first hello world project!

pycharm configuration

you may also like:

        1.python, pycharm, anaconda three differences and relations

        2. Set pycharm template / font / color / size

        3.pycharm create the first Hello World program

        4.pycharm installation tips: this license **** has been cancelled

 

 

Reproduced please specify : ape say Python  »  Python environment configuration -Pycharm download / Anaconda installation

 

Technical exchanges, business cooperation please contact bloggers
Scan code or search: ape say python
No public python tutorial
Ape say python
No. sweep the micro-channel public concern

Guess you like

Origin www.cnblogs.com/shuopython/p/11617906.html