Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

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

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report