本文适用于 PyCharm 2021.1 最新专业版的激活,由于 PyCharm 更新到 2021.1 版本后,之前所有的激活方式好像都失效了,所以今天介绍下最新的激活方式。该激活方法适用于 Jetbrains 全家桶任何版本,即使是从官网下载的最新版本,亲测可成功激活。
1、 资源下载
关于 Python 和 PyCharm 的下载这里就不多介绍了,通常在官网上就可以找到你想要的版本,这里重点说一下试用插件的下载方式,以下 2 个下载地址均可以下载插件:
- https://www.techgrow.cn/downloads/2021/04/ide-eval-resetter-2.1.13.zip
- https://www.yuque.com/r/resources/download/19530835
插件的下载主要用于后面离线式激活,当然本文还会介绍在线激活的方法。
2、 准备
2.1 更改系统Hosts文件
之前网上很多激活教程,都是通过修改 Hosts 文件,添加 javaagent
参数来进行破解。如果你之前没有操作过此类破解步骤,可以直接忽略这一步。如果已经给修改过 hosts 文件,请将 hosts 文件中有关 JetBrains 的配置行全部删除掉:
不同系统的 Hosts 文件位置:
- Windows 系统的 hosts 文件路径为:
C:\Windows\System32\drivers\etc\hosts
- Linux 和 Mac 系统的 hosts 文件路径为:
/etc/hosts
一般情况下只需删除 Hosts 以下两行内容即可:
0.0.0.0 www.jetbrains.com
0.0.0.0 account.jetbrains.com
2.2 安装与试用
下载病安装 PyCharm,然后启动 PyCharm 并选择试⽤(Evaluate for free)模式进⼊软件(如下图)。
假设软件之前激活过且已失效、正在试用、试用过且已过期,那么必须先删除 PyCharm 的所有配置文件,然后再重新启动软件,PyCharm 配置文件所在的目录如下:
[x] Windows系统
C:\Documents and Settings\Administrator\.PyCharm2021.1\config
C:\Documents and Settings\Administrator\.PyCharm2021.1\system
[x] Linux系统
~/.config/JetBrains/PyCharm2021.1
~/.local/share/JetBrains/PyCharm2021.1
3、激活
这里的激活方式就是通过激活插件,让 PyCharm 可以一直试用,本质是重置 PyCharm,最终达到无限次试用 30 天的效果。值得一提的是,此激活方法会彻底重置 PyCharm,任何配置信息都将丢失,和新安装的时候一样。
3.1 离线激活
首先手动下载好 PyCharm 的激活插件,然后启动 PyCharm 后,菜单栏导航到
file -> settings -> Plugins
,依次点击齿轮 -> Install Plugin from Disk...
,找到激活插件所在目录,选中本地激活文件ide-eval-resetter-2.1.13.zip
,最后点击 OK 按钮即可
3.2 在线激活
启动 PyCharm 后,菜单栏导航到
file -> settings -> Plugins
,依次点击齿轮 -> Manage Plugin Repositories...
,点击 + 添加仓库 URL https://plugins.zhile.io,然后点击 OK 按钮
点击Plugins -> Maketplace
,搜索IDE Eval Reset
插件,然后点击Install
按钮进行安装,如果搜索不到对应的插件,请检查网络是否通畅
4、激活插件配置
一般来说,在 IDE 窗口切出去或切回来时(窗口失去 / 得到焦点)会触发事件,检测是否长时间(2 5 天)内没有重置,然后发送通知让你选择重置。也可以手动唤出激活插件的主界面,打开 PyCharm 的主界面,菜单栏导航到
Help -> Eval Reset
,弹出如下提示框,其中包括 2 个按钮,1 个勾选项:Reload 按钮:用来刷新界面上的显示信息
- Reset 按钮:点击会询问是否重置试用信息并重启 IDE。选择 Yes 则执行重置操作并重启 IDE 生效,选择 No 则什么也不做(此为手动重置方式)
Auto reset before per restart 勾选项:如果勾选了,则自勾选后每次重启 / 退出 IDE 时会自动重置试用信息,无需做额外的事情(此为自动重置方式)
5、常见问题
5.1 无限重启
如果 Pycharm 无限重启,说明之前的激活插件(例如 BetterInterlliJ)没有卸载,请卸载干净再重新激活
5.2 激活失败
如果之前在 hosts 中添加过
0.0.0.0 account.jetbrains.com
和0.0.0.0 www.jetbrains.com
,请删除掉对应的内容再重新激活5.3 更新插件
IDE 会自行检测其自身和所安装插件的更新并给予提示,如果本插件有更新,你会收到提示看到更新日志,自行选择是否更新
- 菜单栏导航到
Check for Updates...
,手动检测 IDE 和所安装插件的更新,如果本插件有更新,你会收到提示看到更新日志,自行选择是否更新 -
6、参考文档
https://www.exception.site/essay/how-to-free-use-pycharm-2020
4AYDFN7Y2C-eyJsaWNlbnNlSWQiOiI0QVlERk43WTJDIiwibGljZW5zZWVOYW1lIjoi5rC45LmF5r+A5rS7IHd3d8K3YWppa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