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

一.找到hosts文件

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

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

Linux:/etc/hosts

Mac:/etc/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.Pycharm配置开发模板/设置字体颜色/字体大小

2.Pycharm创建第一个Hello World程序

转载请注明:猿说Python » pycharm 提示:this license **** has been cancelled

 技术交流、商务合作请直接联系博主
扫码或搜索:猿说python
猿说python
微信公众号 扫一扫关注

pycharm 提示:this license **** has been cancelled(2)的更多相关文章

  1. 2020年的第一天-我的IDEA出现This license ... has been cancelled

    IDEA激活在1月3日的早上,激活码被取消了.提示:This license ... has been cancelled. 经过查询.解决方法教程无非是. ¥%--&*(激活码... 210 ...

  2. LR_问题_无法使用LR的Controller,提示缺少license

    问题描述 无法使用LR的Controller,提示缺少license 问题解决 使用开始->所有程序->HP LoadRunner->loadrunner,在打开界面的左上角选择co ...

  3. pycharm提示your evalluation license has expired解决方法

    安装pycharm,一段时间后提示your evalluation license has expired:打开pycharm--点击help--register--选中license server, ...

  4. 解决pycharm 提示no tests were found的问题

    在使用pycharm,做日志模块封装,代码中觉得没有问题,运行就提示no  tests were found 查询了下这个问题,原因是我创建的类名是以test方法开头,类似这样 不知道是不是把它默认当 ...

  5. 两种方法解决 "The License CNEKJPQZEX- has been cancelled..." 问题

    今天在使用 2017 的 IDEA 和 Pycharm 等IDE的时候,提示了如题的问题.之前实在 http://idea.lanyus.com/ 网站点击生成注册码,复制粘贴到 IDEA 中就好了, ...

  6. PyCharm提示ModuleNotFoundError: No module named 'pymysql'

    初学python,连接mysql时遇到了提示pymysql模块导入有问题,本人虽是window系统,解决思路是一样的 代码如下: import pymysql#打开数据库,参数依次为:主机名/IP,用 ...

  7. 打开pycharm提示python已停止工作

    今天遇到一个棘手的问题: 现象:打开pycharm,立刻提示python已停止工作,关掉后还会弹出一个新的,就是永远维持至少一个提醒框在界面的状态 解决过程: 方法一:然后在网上搜解决办法,有一个主流 ...

  8. pycharm提示This inspection detects instance attribute definition outside __init__ method

    示例代码: class MiNiCarStore(CarStore): def createCar(self, typeName): self.carFactory = CarFactory() # ...

  9. pycharm提示This inspection detects any methods which may safely be made static.

    示例代码: class Car(object): # 未定义任何类属性 def move(self): # 方法会出现下划线提示This inspection detects any methods ...

随机推荐

  1. 2017.10.5 国庆清北 D5T2 整除

    80分暴力 /*找规律80分TLE俩点 忘了啥规律了. */ #include<iostream> #include<cstdio> #include<cmath> ...

  2. YII框架的模块化技术

    一.模块的创建 利用yii的自动生成工具gii生成模块. 1.访问:lcoalhost/web/index.php?r=gii 2.点击 Module Generator 下面的 start 3.填写 ...

  3. java使用freemark生成word/pdf

    目录 一. 背景 二.实现的技术选型以及遇到的坑 三.最终的效果 2.1 .doc word效果展示 2.1 .docx word效果展示 2.2 docx word转pdf效果展示 三.准备工作及代 ...

  4. NAT+PAT+OSPF+设备互连地址详解

  5. C#作业处理

    2019.9.8 作业要求: 将字符串加密,即将字符串中每个字符向后移动五个字符,并输出密文 解决方案: using System; using System.Collections.Generic; ...

  6. keepalived vip removed with dhcp renewal【原创】

    最近发现公司云平台服务器的vip有丢失的现象,查看keepalived日志 Jun :: lb1 dhclient: DHCPREQUEST of (xid=0x6deab016) Jun :: lb ...

  7. sanity checking

    https://zh.wikipedia.org/wiki/健全性测试 Modules\_threadmodule.c /* Lock objects */ typedef struct { PyOb ...

  8. Kindle支持的文件格式

    Kindle支持的文件格式 Kindle个人文档服务Kindle个人文档服务支持以下文件类型:Kindle格式(.MOBI..AZW)--Microsoft Word(.DOC..DOCX)HTML( ...

  9. npm使用国内源

    npm使用国内源 转   https://www.jianshu.com/p/7e84d7b119bc $ npm install -g cnpm --registry=https://registr ...

  10. 【转】暴力破解无线WiFi密码

    # coding:utf-8 import pywifi from pywifi import const import time from asyncio.tasks import sleep cl ...