Pycharm 提示:this license * has been cancelled - Python零基础入门教程
目錄
- 一.前言
- 一.找到 hosts 文件
- 二.修改 hosts 文件
- 三.檢查 hosts 文件是否修改成功
- 四.pycharm 安裝詳細(xì)教程
- 五.猜你喜歡
一.前言
零基礎(chǔ) Python 學(xué)習(xí)路線推薦 : Python 學(xué)習(xí)目錄 >> Python 基礎(chǔ)入門
Pycharm 安裝過(guò)程中,提示 this license **** has been cancelled 。這個(gè)問(wèn)題并不是你的jihuo碼不對(duì),而是需要修改系統(tǒng)的 hosts 文件,下面詳細(xì)講解下如何修改 hosts 文件。
一.找到 hosts 文件
1.找到 hosts 文件所在目錄:(以 windoes 為例,其他平臺(tái)操作類似)
Windows:C:\Windows\System32\drivers\etc\hostsLinux:/etc/hostsMac:/etc/hosts2.hosts 文件并沒(méi)有后綴,直接是沒(méi)有辦法修改的。因?yàn)橛浭卤局荒艽蜷_(kāi) txt,推薦下載任意一款代碼編輯器,推薦使用 NotePad++,使用比較簡(jiǎn)單,并且支持多種語(yǔ)言。
如果擔(dān)心文件修改出錯(cuò),可以先復(fù)制一份作為備份,然后用鼠標(biāo)右鍵選擇 edit with NotePad++ 或者打開(kāi) notepad++之后,直接把 hosts 文件拖到 notepad++里面也一樣,這樣我們便能看到 hosts 文件的具體內(nèi)容:
# 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 文件的內(nèi)容的末尾在添加一行代碼:0.0.0.0 account.jetbrains.com,注意代碼中間的空格,一個(gè)字符都不能錯(cuò),如果擔(dān)心寫(xiě)錯(cuò),請(qǐng)直接復(fù)制下面的代碼,然后粘貼到文件中,修改之后記得保存。
0.0.0.0 account.jetbrains.com三.檢查 hosts 文件是否修改成功
很多小伙伴說(shuō)修改了,但是還是報(bào)錯(cuò) this license **** has been cancelled !在步驟完成之后,請(qǐng)使用 notepad++ 重新打開(kāi)檢查 hosts 文件,是否最后一行代碼添加成功,如果沒(méi)有 this 0.0.0.0 account.jetbrains.com,只能說(shuō)明你沒(méi)有修改成功。
有時(shí)候可能是 C 盤權(quán)限問(wèn)題,你可以直接復(fù)制一份 hosts 文件到桌面,修改好之后,再拷貝回去,直接覆蓋原始的 hosts 文件即可,這種方法最簡(jiǎn)單(推薦)
不管是第一次安裝還是以后再次出現(xiàn)這種問(wèn)題,你只需要記住:this license ** has been cancelled 這個(gè)錯(cuò)誤 99.99%都跟你的 hosts 文件有關(guān)系。**
四.pycharm 安裝詳細(xì)教程
Pycharm 安裝詳細(xì)教程請(qǐng)參考:python 開(kāi)發(fā)環(huán)境配置
五.猜你喜歡
未經(jīng)允許不得轉(zhuǎn)載:猿說(shuō)編程 ? Pycharm 提示:this license **** has been cancelled
總結(jié)
以上是生活随笔為你收集整理的Pycharm 提示:this license * has been cancelled - Python零基础入门教程的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: C语言 数组指针 - C语言零基础入门教
- 下一篇: Python 线程优先队列 Priori