In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
In this issue, the editor will bring you about how to install Python 3 in Centos6. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.
Install Required Packages # sudo yum install gcc openssl-devel bzip2-devel libffi-devel
Download Python 3.8 # wget https://www.python.org/ftp/python/3.8.5/Python-3.8.5.tgz # tar xzf Python-3.8.5.tgz
Compile cd Python-3.8.5. / configure-- with-openssl=/usr/local/openssl
Default: / usr/local make & & make altinstall make altinstall is used to prevent replacing the default python binary file / usr/bin/python. Can not connect to HTTPS URL because the SSL module is not available to solve the problem wget http://www.openssl.org/source/openssl-1.0.2t.tar.gz Decompress, compile and install: tar zxvf openssl 1.0 2j. Tar .gz cd openssl-1.0.2j. / config-- prefix=/usr/local/openssl shared zlib make & & make install After modifications are complete, we need to create two points soft link dynamic link library file: ln-s / usr/local/openssl/lib/libssl.so.1.0.0 / usr/lib64/libssl.so.1.0.0 ln-s / usr/local/openssl/lib/libcrypto.so.1.0.0 / usr/lib64/libcrypto.so.1.0.0
Vi Modules/Setup
Socket module helper for socket (2)
# _ socket socketmodule.c
Socket module helper for SSL support; you must comment out the othersocket line above, and possibly edit the SSL variable:
SSL = / usr / local / Lab / openssl- 1.0.2J / # uncomment this line, and the original / usr / local / ssl changed our newly installed openssl directory: / usr / local / lab / openssl- 1.0.2J / _ ssl _ ssl.c\ # Uncomment this line The-I $- DUSE_SSL (SSL) / the include the-I $(SSL) / the include / OpenSSL\ # Uncomment this line-L $(SSL) / lib-lssl-lcrypto # Uncomment this line
The crypt module is now disabled by default because it breaks buildson many systems (where-lcrypt is needed), e.g. Linux (I believe).
# _ crypt _ cryptmodule.c #-lcrypt # crypt (3); needs-lcrypt on some systems
The above is the editor for you to share how to install Python 3 in Centos6, if you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.