Home >Backend Development >Python Tutorial >Does python need to be programmed under linux?
Many Python newbies often ask whether they need to learn Linux to learn Python? Doesn’t Python support Windows and Linux operating systems? Why learn Linux when you can develop under Windows?
#Friends who ask this question may not have really started Python development or have not really participated in some of the company's project deployment and launch processes. For the above Question, the preferred answer is yes, Python development can be developed under Windows, but Linux learning is still necessary. (Recommended learning: Python video tutorial)
The online server is usually Linux
Generally in a production environment, the server is basically It's Linux, such as centos, Red Hat, ubuntu and other Linux systems. Why are most servers using linxu?
For example, one of the reasons must be security. We have heard that Windows often crashes, and you have to pay Bitcoin when being invaded by ransomware viruses, but these do not happen often under Linux. There are many other reasons that can be found online, so production The environment's Python scripts are all deployed on Linux systems.
But when it comes to development, considering the convenience of operation, Windows or Mac not only have a graphical interface, but also have better performance. It is easier and faster to operate. After all, anyone who has used Ubuntu knows that installing Virtual machines still have certain requirements for computer performance. If the computer configuration cannot keep up, it will be very laggy when using Ubuntu. Generally, server-level systems have a character-based interface, which is the legendary black screen. If you want It is also possible to develop on a Linux server, but it is more troublesome and requires high coding level and operational proficiency.
Deployment
Online deployment often encounters the problem of debugging the code after deploying it to the server. Generally, during the debugging process, developers will frequently switch back and forth. Directory, search for files, use VI to modify the code, these regular operations are all necessary skills for a Python development engineer. VI also uses various Linux commands, which is convenient and direct, without having to transfer the code offline and modify it. After that, it is transmitted to the server. Hackers use commands directly under Linux because they want to attack and modify the code data of the other party's server. They must understand all operations under Linux, and for hackers, using commands is easier than using graphics. The interface is more efficient
Linux is more convenient
Linux is more convenient for developers. You have the highest authority in the Linux system. Various configurations inside, The tools are at your disposal, but under Windows, the modifications you can make to the system are relatively cumbersome. Using Linux, the modification of various configuration files only requires a few commands, and the installation of tools only requires a few commands. If you modify the configuration under Windows, you may need to look for the file everywhere, which is also a shortcoming of the graphical interface.
To summarize, the Python language can also be learned and developed under Windows, but it is more convenient under Linux. For example, if you want to use Python to develop a website (the popular and mature Python Web framework today), you need to use the Linux platform. After all, the Linux platform is more commonly used to build such a website; secondly, if you want to use Python crawler to crawl It is more convenient to obtain data on the Linux system; also, if you want to learn network security penetration testing, it is also necessary to write Python automated test scripts on Linux.
The above is the detailed content of Does python need to be programmed under linux?. For more information, please follow other related articles on the PHP Chinese website!