首页 >> 人工智能 >>Python入门 >> Python编辑器:PyCharm2019安装教程图解完整
详细内容

Python编辑器:PyCharm2019安装教程图解完整

时间:2019-10-04        阅读

下载PyCharm

PyCharm官网下载:https://www.jetbrains.com/pycharm/download/#section=windows

20190425093723901.png

 

安装PyCharm 

1、双击exe,进入“欢迎安装”界面,直接下一步 

20190425092807309.png



2、进入“选择安装路径”界面,我一般不喜欢安装在系统盘,而是直接安装在软件下载文件夹中 ,选择好路径以后,下一步


20190425092837742.png


3、 进入“安装选项”界面,按自己需求选择,我是全选,下一步


20190425093024391.png


4、进入“选择开始菜单”界面,可以重新取一个名字,下一步 


20190425093251355.png


5、进入“安装过程”界面,等一会儿,安装完后,下一步


20190425093327736.png


6、选择“现在重启”还是“稍后重启”,我选“稍后重启”


20190425093435722.png


7、如果以前没安装过,选择“不导入设置” ,点击“OK”


20190116095521417.png


8、 进入“许可协议”界面,选择“同意”,不同意也没办法,点击“continue”


20190425094306966.png


9、这个随便选,只想要你的统计数据


20190425094332908.png


10、这个比较重要,激活pycharm,选择“Activate”,然后选择“Activation code”,在下面的编辑框中输入激活码,这是最简单的,不过激活码有时间限制,会失效,到期就需要重新激活,另外还有两种选项自己去网上查找资料。


激活码直接复制使用:

MTW881U3Z5-eyJsaWNlbnNlSWQiOiJNVFc4ODFVM1o1IiwibGljZW5zZWVOYW1lIjoiTnNzIEltIiwiYXNzaWduZWVOYW1lIjoiIiwiYXNzaWduZWVFbWFpbCI6IiIsImxpY2Vuc2VSZXN0cmljdGlvbiI6IkZvciBlZHVjYXRpb25hbCB1c2Ugb25seSIsImNoZWNrQ29uY3VycmVudFVzZSI6ZmFsc2UsInByb2R1Y3RzIjpbeyJjb2RlIjoiSUkiLCJwYWlkVXBUbyI6IjIwMTktMTEtMDYifSx7ImNvZGUiOiJBQyIsInBhaWRVcFRvIjoiMjAxOS0xMS0wNiJ9LHsiY29kZSI6IkRQTiIsInBhaWRVcFRvIjoiMjAxOS0xMS0wNiJ9LHsiY29kZSI6I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g8qVve6euqsrFicYkIIuUu4zYPndJwfe0YkS5nY72SHnNdbPhEnN8wcB2Kz+OIG0lih3yz5EqFhld03bGp222ZQCIghCTVL6QBNadGsiN/lWLl4JdR3lJkZzlpFdiHijoVRdWeSWqM4y0t23c92HXKrgppoSV18XMxrWVdoSM3nuMHwxGhFyde05OdDtLpCv+jlWf5REAHHA201pAU6bJSZINyHDUTB+Beo28rRXSwSh3OUIvYwKNVeoBY+KwOJ7WnuTCUq1meE6GkKc4D/cXmgpOyW/1SmBz3XjVIi/zprZ0zf3qH5mkphtg6ksjKgKjmx1cXfZAAX6wcDBNaCL+Ortep1Dh8xDUbqbBVNBL4jbiL3i3xsfNiyJgaZ5sX7i8tmStEpLbPwvHcByuf59qJhV/bZOl8KqJBETCDJcY6O2aqhTUy+9x93ThKs1GKrRPePrWPluud7ttlgtRveit/pcBrnQcXOl1rHq7ByB8CFAxNotRUYL9IF5n3wJOgkPojMy6jetQA5Ogc8Sm7RG6vg1yow==


20190425094615957.png


 

PyCharm简单使用

1、点击软件图标, 如果以前有过python项目,就点击“open”打开旧项目,如果第一次使用,就选择创建新项目


20190425094630394.png

20190425094905967.png



2、如果单纯写python代码就选择“Pure Python”,然后选择“Location”,用于保存新建的项目文件,以后你的代码就存放在这个位置。


20190425095338214.png


3、新建python文件 ,选中项目名称,点击鼠标右键,选择“新建”,然后选择“Python File”


20190425100424858.png


4、选择python文件名称,一个python文件就创建完了


2019042510075957.png


5、添加测试代码,就简单打印一个“hello world”


print('hello world')


6、按“Ctrl+F5”或者去找“小绿三角”运行代码,下面是演示结果 


 20190425101021977.png


 

PyCharm设置中文

1、下载汉化补丁


百度网盘链接:https://pan.baidu.com/s/13nAzMEiiv76LPWRWG733dA 

提取码:2f3q 


将下载的压缩包进行解压,然后将“resources_cn.jar” 文件复制到安装目录下的lib文件中,重启PyCharm生效。


20190425094100303.png




2、添加中文补丁后,有些功能可能不全,点击设置按钮没有反应,如果要设置,先删除中文补丁,等设置完后,再加回去。


20190425100935830.png


 

PyCharm安装第三方库

1、依次选择“File”、“Settings”、“Project Interpreter”,“Show All”,选择一个python版本,激活右边的“+”。


 20190425104514413.png

20190425104609747.png

2、点击“+”,在搜索框内输入“matplotlib”进行查找,选中查找结果,点击左下角的“Install Package”进行安装,稍微等一会儿,安装需要时间,如果安装失败,重试一次,再失败就另寻它法。

20190425104741238.png




最新评论
请先登录才能进行回复登录
技术支持: 建站ABC | 管理登录