directory
- A preface.
- Find the hosts file
- 2. Modify the hosts file
- 3. Check whether the hosts file is successfully modified
- Pycharm installation tutorial
- Five. Guess you like it
A preface.
Recommended path for learning Python: Python Learning Directory >> Python Basics
Pycharm During installation, the system prompts that this license **** has been cancelled. This problem is not your Jihuo code is wrong, but need to modify the hosts file system, the following details on how to modify the hosts file.
Find the hosts file
1. Locate the directory where the hosts file resides :(the following uses the Windows server as an example. Similar operations are performed on other platforms.)
Windows: C:\Windows\System32\drivers\etc\hosts Linux: /etc/hosts Mac: /etc/hostsCopy the code
2. The hosts file does not have a suffix and cannot be modified directly. Because notepad can only open TXT, it is recommended to download any code editor, the use of NotePad++ is relatively simple, and support a variety of languages.
If you are worried about making changes to the file, you can make a copy of the file as a backup, and then right click edit with NotePad++, or after opening NotePad++, drag the hosts file directly into NotePad++. So we can see the contents of the hosts file:
# 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: # rhino.acme.com # source server # rhino.acme.com # x client host # localhost name resolution is 1 handled within DNS Itself.1Copy the code
2. Modify the hosts file
To make Pycharm work, we need to add a line of code at the end of the hosts file: 0.0.0.0 account.jetbrains.com, pay attention to the space in the middle of the code, not a single character wrong, if you are worried about writing the code, please directly copy the following code, and paste it into the file, remember to save the modification.
0.0.0.0 account.jetbrains.com
Copy the code
3. Check whether the hosts file is successfully modified
This license **** has been cancelled! After the procedure is complete, open the hosts file again using notepad++ to check whether the last line of code was added successfully. If this 0.0.0.0 account.jetbrains.com is not displayed, the modification is not successful.
You can directly copy the hosts file to your desktop, modify it, and then copy it back to overwrite the original hosts file. This method is the easiest (recommended).
Whether it’s the first installation or later, just remember that the license has been cancelled error is 99.99% related to your hosts file.
Pycharm installation tutorial
Pycharm For details on how to install Pycharm, see Python Development Environment Configuration
Five. Guess you like it
- Introduction of Python
- Python Pycharm Anacanda difference
- Python2.x and python3. x, how to choose?
- Python Configuration Environment
- Introduction to Python Hello World
Pycharm: this license **** has been cancelled
This article is published by the blog – Ape Say Programming Ape Say programming!