Get the App
SLTechnology News&Howtos  ›  Development  › 

What is the method of compiling Python 3.6with source code under Linux

Shulou Source: shulou.com Published: 2022-06-02 00:04:57 11月08日 Update

This article mainly explains "what is the method of compiling Python 3.6under Linux". The content of the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "what is the method of compiling Python 3.6under Linux".

1. The operating system and version show uname-sr Linux 3.10.0-514.el7.x86_64 uname-sr Linux 3.10.0-514.el7.x86_642. Download the python installation package wget https://www.python.org/ftp/python/3.6.1/Python-3.6.1.tar.xz3. Start compilation and install python3.1 extract python tar-xf Python-3.6.1.tar.xz3.2 to get help cd Python-3.6.1/ cat README.rst 3.3.to view the compilation parameters. / configure-- help 3.4.start compiling yuminstall-y gccgcc-c++. / configure-- prefix=/usr/local/python-3.6 make & & makeinstall3.5 Test [root@localhost Python-3.6.1] # / usr/local/python-3.6/bin/python3.6 Python 3.6.1 (default May 102017, 08:59:54) [GCC 4.8.520150623 (Red Hat4.8.5-11)] on linux Type "help", "copyright", "credits" or "license" formore information. 4. The error and the solution the following message appears during the make install and the installation is terminated

Zipimport.ZipImportError: can't decompress data; zlib not available

Solution: yuminstall-y zlib zlib-devel thank you for reading, the above is "what is the method of compiling Python 3.6source code under Linux", after the study of this article, I believe you have a deeper understanding of what the method of compiling Python 3.6source code under Linux is, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Compilation method source code learning content method operating system information parameters that is ideas situations articles times more versions knowledge knowledge points articles systems Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux macOS OPPO Reno Redmi Microsoft