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

系统管理员 2023-06-10 15:22 80阅读 0赞

目录

一.找到hosts文件

二.修改hosts文件

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


pycharm:this license \*\*\*\* has been cancelled

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

一.找到hosts文件

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

  1. WindowsC:\Windows\System32\drivers\etc\hosts
  2. Linux:/etc/hosts
  3. Mac:/etc/hosts

pycharm安装过程中修改hosts文件

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

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

  1. # Copyright (c) 1993-2009 Microsoft Corp.
  2. #
  3. # This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
  4. #
  5. # This file contains the mappings of IP addresses to host names. Each
  6. # entry should be kept on an individual line. The IP address should
  7. # be placed in the first column followed by the corresponding host name.
  8. # The IP address and the host name should be separated by at least one
  9. # space.
  10. #
  11. # Additionally, comments (such as these) may be inserted on individual
  12. # lines or following the machine name denoted by a '#' symbol.
  13. #
  14. # For example:
  15. #
  16. # 102.54.94.97 rhino.acme.com # source server
  17. # 38.25.63.10 x.acme.com # x client host
  18. # localhost name resolution is handled within DNS itself.
  19. # 127.0.0.1 localhost
  20. # ::1 localhost

二.修改hosts文件

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

  1. 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)

发表评论

表情:
评论列表 (有 0 条评论,80人围观)

还没有评论,来说两句吧...

相关阅读