pycharm 提示:this license **** has been cancelled(2)

目录

一.找到hosts文件

二.修改hosts文件

三.检查hosts文件是否修改成功


pycharm:this license **** has been cancelled

pycharm安装激活过程中,提示 this license **** has been cancelled 。这个问题并不是你的激活码不对,而是需要修改系统的hosts文件,下面详细讲解下如何修改hosts文件。

一.找到hosts文件

首先找到hosts文件所在目录:(以windoes为例,其他平台操作类似)

       

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

Linux:/etc/hosts

Mac:/etc/hosts

pycharm安装过程中修改hosts文件

hosts文件并没有后缀,直接是没有办法修改的。因为记事本只能打开txt,推荐下载任意一款代码编辑器,推荐使用 NotePad++,使用比较简单,并且支持多种语言。

如果担心文件修改出错,可以先复制一份作为备份,然后用鼠标右键选择 edit with NotePad++ 或者打开 notepad++之后,直接把hosts文件拖到notepad++里面也一样,这样我们便能看到hosts文件的具体内容:

# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# 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

二.修改hosts文件

如果想pycharm能正常使用,我们需要在hosts文件的内容的末尾在添加一行代码:0.0.0.0 account.jetbrains.com,注意代码中间的空格,一个字符都不能错,如果担心写错,请直接复制下面的代码,然后粘贴到文件中,修改之后记得保存。

0.0.0.0 account.jetbrains.com

三.检查hosts文件是否修改成功

很多小伙伴说修改了,但是还是报错 this license **** has been cancelled !在步骤完成之后,请使用notepad++重新打开检查hosts文件,是否最后一行代码添加成功,如果没有this 0.0.0.0 account.jetbrains.com,只能说明你没有修改成功。

有时候可能是C盘权限问题,你可以直接复制一份hosts文件到桌面,修改好之后,再拷贝回去,直接覆盖原始的hosts文件即可,这种方法最简单(推荐)

不管是第一次安装还是以后再次出现这种问题,你只需要记住:this license **** has been cancelled 这个错误 99.99%都跟你的hosts文件有关系。

猜你喜欢:

## 四.**猜你喜欢**

1.  [Python 条件推导式](https://www.codersrc.com/archives/5346.html)
2.  [Python 列表推导式](https://www.codersrc.com/archives/5359.html)
3.  [Python 字典推导式](https://www.codersrc.com/archives/5377.html)
4.  [Python 不定长参数 \*argc/\*\*kargcs](https://www.codersrc.com/archives/5443.html)
5.  [Python 匿名函数 lambda](https://www.codersrc.com/archives/5756.html)
6.  [Python return 逻辑判断表达式](https://www.codersrc.com/archives/5759.html)
7.  [Python is 和 == 区别](https://www.codersrc.com/archives/5288.html)
8.  [Python 可变数据类型和不可变数据类型](https://www.codersrc.com/archives/5271.html)
9.  [Python 浅拷贝和深拷贝](https://www.codersrc.com/archives/5492.html)
10. [Python 异常处理](https://www.codersrc.com/archives/5966.html)
11. [Python 线程创建和传参](https://www.codersrc.com/archives/6015.html)
12. [Python 线程互斥锁 Lock](https://www.codersrc.com/archives/6048.html)
13. [Python 线程时间 Event](https://www.codersrc.com/archives/6486.html)
14. [Python 线程条件变量 Condition](https://www.codersrc.com/archives/6508.html)
15. [Python 线程定时器 Timer](https://www.codersrc.com/archives/6538.html)
16. [Python 线程信号量 Semaphore](https://www.codersrc.com/archives/6563.html)
17. [Python 线程障碍对象 Barrier](https://www.codersrc.com/archives/6581.html)
18. [Python 线程队列 Queue – FIFO](https://www.codersrc.com/archives/6609.html)
19. [Python 线程队列 LifoQueue – LIFO](https://www.codersrc.com/archives/6651.html)
20. [Python 线程优先队列 PriorityQueue](https://www.codersrc.com/archives/6674.html)
21. [Python 线程池 ThreadPoolExecutor(一)](https://www.codersrc.com/archives/6707.html)
22. [Python 线程池 ThreadPoolExecutor(二)](https://www.codersrc.com/archives/6732.html)
23. [Python 进程 Process 模块](https://www.codersrc.com/archives/6765.html)
24. [Python 进程 Process 与线程 threading 区别](https://www.codersrc.com/archives/6788.html)
25. [Python 进程间通信 Queue / Pipe](https://www.codersrc.com/archives/6826.html)

                                  

  • 4
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 14
    评论
评论 14
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

猿说编程

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值