pycharm 提示:this license **** has been cancelled

pycharm:this license **** has been cancelled

pycharm安裝激活過程當中,提示 this license **** has been cancelled 。這個問題並非你的激活碼不對,而是須要修改系統的hosts文件,下面詳細講解下如何修改hosts文件。python

 

一.找到hosts文件

首先找到hosts文件所在目錄:(以windoes爲例,其餘平臺操做相似)app

Windows:C:\Windows\System32\drivers\etc\hosts編輯器

Linux:/etc/hostside

Mac:/etc/hosts字體

       pycharm安裝過程當中修改hosts文件

 

hosts文件並無後綴,直接是沒有辦法修改的。由於記事本只能打開txt,推薦下載任意一款代碼編輯器,推薦使用 NotePad++,使用比較簡單,而且支持多種語言。this

 

若是擔憂文件修改出錯,能夠先複製一份做爲備份,而後用鼠標右鍵選擇 edit with NotePad++ 或者打開 notepad++以後,直接把hosts文件拖到notepad++裏面也同樣,這樣咱們便能看到hosts文件的具體內容:spa

13d

2code

3orm

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

# 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,注意代碼中間的空格,一個字符都不能錯,若是擔憂寫錯,請直接複製下面的代碼,而後粘貼到文件中,修改以後記得保存。

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.Pycharm配置開發模板/設置字體顏色/字體大小

2.Pycharm建立第一個Hello World程序

 

轉載請註明猿說Python » pycharm 提示:this license **** has been cancelled

相關文章
相關標籤/搜索