PyCharm 是一种 Python IDE,由著名的 JetBrains 开发的,可以帮助程序员节约时间,提高生产效率。

PyCharm 可以为我们节省大量时间,它能够管理代码,并完成大量其他任务,如 debug 和可视化等。

 

JetBrains 公司的产品

 

PyCharm 官网(英文):https://www.jetbrains.com/pycharm/

PyCharm 官网(中文):https://www.jetbrains.com/zh/pycharm/

PyCharm 下载:pycharm-professional-2019.2.5.dmg

PyCharm 安装(MacOS):

 

PyCharm 版本

PyCharm 分为专业版(收费,全部功能)社区版(免费,功能阉割)

PyCharm 社区版是 PyCharm专业版的阉割版本,其仅提供一些PyCharm专业版的基础功能,不可进行python的web开发等工作。

PyCharm 社区版是免费的,所以免费版和社区版是一样的,区别于收费的专业版。

PyCharm 社区版除了一些功能(收费的专业版)没有以外,他是用来解决工作问题的,部分功能没法用,例如:Web开发、Python Web框架、Python的探查、远程开发能力、数据库和SQL支持。

如果你的学校有自己的教育邮箱,可以申请免费的更多工具和功能,用你的学生身份证明或者老师证明,然后可以让你免费使用。

 

 

PyCharm 专业版免费激活的四种方法

PyCharm 安装完成后,第一次打开,会提示激活,如下图:

 

激活方法1:激活码(Activation code) 推荐

1、激活码1,有效期 2020-04-21 (可用,成功

812LFWMRSH-eyJsaWNlbnNlSWQiOiI4MTJMRldNUlNIIiwibGljZW5zZWVOYW1lIjoi5q2j54mIIOaOiOadgyIsImFzc2lnbmVlTmFtZSI6IiIsImFzc2lnbmVlRW1haWwiOiIiLCJsaWNlbnNlUmVzdHJpY3Rpb24iOiIiLCJjaGVja0NvbmN1cnJlbnRVc2UiOmZhbHNlLCJwcm9kdWN0cyI6W3siY29kZSI6IklJIiwiZmFsbGJhY2tEYXRlIjoiMjAxOS0wNC0yMSIsInBhaWRVcFRvIjoiMjAyMC0wNC0yMCJ9LHsiY29kZSI6IkFDIiwiZmFsbGJhY2tEYXRlIjoiMjAxOS0wNC0yMSIsInBhaWRVcFRvIjoiMjAyMC0wNC0yMCJ9LHsiY29kZSI6IkRQTiIsImZhbGxiYWNrR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0myxg7KDeeEwEwYDVR0lBAwwCgYIKwYBBQUHAwEwCwYDVR0PBAQDAgWgMA0GCSqGSIb3DQEBCwUAA4ICAQC9WZuYgQedSuOc5TOUSrRigMw4/+wuC5EtZBfvdl4HT/8vzMW/oUlIP4YCvA0XKyBaCJ2iX+ZCDKoPfiYXiaSiH+HxAPV6J79vvouxKrWg2XV6ShFtPLP+0gPdGq3x9R3+kJbmAm8w+FOdlWqAfJrLvpzMGNeDU14YGXiZ9bVzmIQbwrBA+c/F4tlK/DV07dsNExihqFoibnqDiVNTGombaU2dDup2gwKdL81ua8EIcGNExHe82kjF4zwfadHk3bQVvbfdAwxcDy4xBjs3L4raPLU3yenSzr/OEur1+jfOxnQSmEcMXKXgrAQ9U55gwjcOFKrgOxEdek/Sk1VfOjvS+nuM4eyEruFMfaZHzoQiuw4IqgGc45ohFH0UUyjYcuFxxDSU9lMCv8qdHKm+wnPRb0l9l5vXsCBDuhAGYD6ss+Ga+aDY6f/qXZuUCEUOH3QUNbbCUlviSz6+GiRnt1kA9N2Qachl+2yBfaqUqr8h7Z2gsx5LcIf5kYNsqJ0GavXTVyWh7PYiKX4bs354ZQLUwwa/cG++2+wNWP+HtBhVxMRNTdVhSm38AknZlD+PTAsWGu9GyLmhti2EnVwGybSD2Dxmhxk3IPCkhKAK+pl0eWYGZWG3tJ9mZ7SowcXLWDFAk0lRJnKGFMTggrWjV8GYpw5bq23VmIqqDLgkNzuoog==  

 

说明:这里激活后,最好屏蔽掉每次开启 PyCharm 的激活码校验,步骤如下

修改hosts文件,添加下面一行配置(红色字体 )到hosts文件,目的是屏蔽掉Pycharm对激活码的验证

如果遇到权限问题,可将hosts文件先复制出来修改后再覆盖原来的即可

0.0.0.0         account.jetbrains.com 

1)Windows 的 hosts 路径C:\Windows\System32\drivers\etc\hosts

# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

# localhost name resolution is handled within DNS itself.
#	127.0.0.1       localhost
#	::1             localhost
#0.0.0.0         .psf
#0.0.0.0         Mac
#0.0.0.0         psf
#0.0.0.0         psf
0.0.0.0 		account.jetbrains.com 

 

2)Linux / Unix 的 hosts 路径sudo vim /etc/hosts

# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1       yg-mac.local localhost
255.255.255.255 broadcasthost
::1             yg-mac.local localhost

0.0.0.0         account.jetbrains.com

 

 

激活方法2:破解补丁 (推荐,好像只适用 PyCharm 的 Windows版

PyCharm 专业版的方法有很多,最有效的两种:

一种是使用最新可用的注册激活码,请见上方的激活方法1

一种是使用破解补丁的方法,这种方法虽然麻烦点,但是基本是永久激活,一劳永逸。

使用破解补丁方法虽然麻烦,但是可用激活到2099年,基本上是永久激活了,毕竟在座各位能活到这个年份也是寥寥无几了吧

 

1、下载专业版

 PyCharm-Professional-2018.3.3 ,提取密码:3y8o

说明:内含专业版、社区版,仅专业版需激活授权

 

2、安装 PyCharm

 

3、拷贝补丁

将破解补丁文件 JetbrainsCrack-release-enc.jar 放置到 pycharm 程序安装目录 bin 目录下

目录 bin 的完整路径:C:\Program Files\JetBrains\PyCharm 2018.3.3\bin\

 

4、修改配置

修改步骤3中的两个配置文件:pycharm.exe.vmoptionspycharm64.exe.vmoptions

在两个文件最后追加  -javaagent:盘符:\你的pycharm的安装路径\bin\JetbrainsCrack-release-enc.jar

完整的补丁配置:-javaagent:​C:\Program Files\JetBrains\PyCharm 2018.3.3\bin\JetbrainsCrack-release-enc.jar

修改两个配置文件,例如:pycharm.exe.vmoptions

-server
-Xms128m
-Xmx512m
-XX:ReservedCodeCacheSize=240m
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-ea
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-Djdk.http.auth.tunneling.disabledSchemes=""
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
-javaagent:​C:\Program Files\JetBrains\PyCharm 2018.3.3\bin\JetbrainsCrack-release-enc.jar

说明:一定要把 pycharm安装路径写正确,失败都是因为这步没有做好,最后记得一定要保存!

 

5、激活验证 (验证失败,根本就打不开 PyCharm

启动Pycharm软件,选择激活码激活,输入下面内容即可,永久激活了!

正确的话,正常如下如(有效期为 2019-04-26):

本文配置补丁不成功,初步判定是因为补丁有效期为 2019-04-26 ,而本教程配置是 2019-11-22 ,怀疑是补丁过期了,导致不成功

因此,综合激活方法1、2,激活的有效期 ,非常重要,非常重要,非常重要!

成功请见激活方法1,有效期 2020-04-21,唯一成功的一次!

 

 

激活方法3:服务器授权激活

PyCharm 安装完后,选择 License server,适合集团和大公司批量采购的授权

详见:Floating License Server

 

 

激活方法4:学校学生邮箱激活(用户名、密码激活)

学校学生邮箱激活,属于用户名 + 密码激活方式,即如下图:

 

获取授权,请查看购买特别方式:https://www.jetbrains.com/pycharm/buy/#discounts

如上说明,如果你是在校大学生、老师、研究生、科研人员,可用大学校园邮箱,申请 JetBrains 全套免费的产品使用

学校学生科研人员申请免费使用入口:https://www.jetbrains.com/shop/eform/students

 

 

PyCharm 常见错误

1、PyCharm 重装后无法打开

问题:PyCharm 在MacOS上安装后(修改过 pycharm.vmoptions ),卸载,再重新安装,结果无法打开

分析:查看 /Users/homer/Library/Preferences/PyCharm2019.2/pycharm.vmoptions 文件,发现之前修改过配置文件,添加了最后一行,导致无法打开 

# cat /Users/homer/Library/Preferences/PyCharm2019.2/pycharm.vmoptions         
-Xms128m
-Xmx2048m
-XX:ReservedCodeCacheSize=240m
-XX:+UseCompressedOops
-Dfile.encoding=UTF-8
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-ea
-XX:CICompilerCount=2
-Dsun.io.useCanonPrefixCache=false
-Djava.net.preferIPv4Stack=true
-Djdk.http.auth.tunneling.disabledSchemes=""
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
-Djdk.attach.allowAttachSelf
-Dkotlinx.coroutines.debug=off
-Djdk.module.illegalAccess.silent=true
-Xverify:none

-XX:ErrorFile=$USER_HOME/java_error_in_pycharm_%p.log
-XX:HeapDumpPath=$USER_HOME/java_error_in_pycharm.hprof
-javaagent:/Applications/PyCharm.app/Contents/bin/JetbrainsCrack-2.6.10-release-enc.jar

解决:删除最后一行之前安装后配置的 ,便可以正常打开了

删除掉: -javaagent:/Applications/PyCharm.app/Contents/bin/JetbrainsCrack-2.6.10-release-enc.jar

附加:如上若打不开,可以直接进入安装目录打开,如下:

bash-3.2# cd /Applications/PyCharm.app/Contents/MacOS/ 
bash-3.2# ./pycharm 
2019-11-22 12:00:12.377 pycharm[2217:24750] allVms required 1.8*,1.8+
2019-11-22 12:00:12.380 pycharm[2217:24755] Value of PYCHARM_VM_OPTIONS is (null)
2019-11-22 12:00:12.380 pycharm[2217:24755] fullFileName is: /Applications/PyCharm.app/Contents/bin/pycharm.vmoptions
2019-11-22 12:00:12.380 pycharm[2217:24755] fullFileName exists: /Applications/PyCharm.app/Contents/bin/pycharm.vmoptions
2019-11-22 12:00:12.380 pycharm[2217:24755] Processing VMOptions file at /Applications/PyCharm.app/Contents/bin/pycharm.vmoptions
2019-11-22 12:00:12.381 pycharm[2217:24755] Done
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.

 

 

参考推荐

PyCharm IDE 完整的图文学习教程

10 款最好的 Python IDE

Python scrapy 安装与开发

Python pyspider 安装与开发

Python框架、库资源大全

Python六大开源框架对比

13个最受欢迎的Python开源框架

Eclipse 搭建 Python+Django开发web网站

Python Web框架Django,Pylons,Bottle,Tornado,Quixote等浅谈

Python应用快速部署:Nginx + uWSGI

Python金融股票爬虫实战源码大全