目录

一.前言

零基础 Python 学习路线推荐 : Python 学习目录 >> Python 基础入门

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

一.找到 hosts 文件

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

Windows:C:WindowsSystem32driversetchosts

Linux:/etc/hosts

Mac:/etc/hosts

2.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 文件有关系。**

四.pycharm 安装激活详细教程

Pycharm 安装激活详细教程请参考:python 开发环境配置

五.猜你喜欢

  1. Python 简介
  2. Python Pycharm Anacanda 区别
  3. Python2.x 和 Python3.x,如何选择?
  4. Python 配置环境
  5. Python Hello World 入门

未经允许不得转载:猿说编程 » Pycharm 提示:this license **** has been cancelled

本文由博客 - 猿说编程 猿说编程 发布!

内容来源于网络如有侵权请私信删除

文章来源: 博客园

原文链接: https://www.cnblogs.com/shuopython/p/14876173.html

你还没有登录,请先登录注册
  • 还没有人评论,欢迎说说您的想法!