Explore Enterprise Education Gitee Premium Gitee AI AI teammates
Fetch the repository succeeded.
Create your Gitee Account
Explore and code with more than 14 million developers,Free private repositories !:)
Sign up
Already have an account? Sign in
文件
master
Branches (2)
master
dev
master
Branches (2)
master
dev
Clone or Download
Clone/Download
Prompt
To download the code, please copy the following command and execute it in the terminal
To ensure that your submitted code identity is correctly recognized by Gitee, please execute the following command.
When using the SSH protocol for the first time to clone or push code, follow the prompts below to complete the SSH configuration.
1 Generate RSA keys.
2 Obtain the content of the RSA public key and configure it in SSH Public Keys
To use SVN on Gitee, please visit the usage guide
When using the HTTPS protocol, the command line will prompt for account and password verification as follows. For security reasons, Gitee recommends configure and use personal access tokens instead of login passwords for cloning, pushing, and other operations.
Username for 'https://gitee.com': userName
Password for 'https://userName@gitee.com': # Private Token
master
Branches (2)
master
dev
centos-script
/
python3.8.sh
centos-script
/
python3.8.sh
python3.8.sh 1.69 KB
Copy Edit Raw Blame History
luofei1 authored 2020年12月08日 14:39 +08:00 . 更新脚本中的语法规范
#!/bin/bash
echo -e '033円[1;32m 编译安装Python3.7 033円[0m'
echo -e '033円[1;32m 1.开始安装依赖包,centos里面是-devel,如果在ubuntu下安装则要改成-dev 033円[0m'
yum -y groupinstall "Development tools"
yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel libffi-devel
echo -e '033円[1;32m 2.获取python3.8.3的安装包 033円[0m'
wget -c https://www.python.org/ftp/python/3.8.3/Python-3.8.3.tar.xz
echo -e '033円[1;32m 3.解压 033円[0m'
tar -xvJf Python-3.8.3.tar.xz
echo -e '033円[1;32m 4.配置python3的安装目录 033円[0m'
cd Python-3.8.3 || exit
./configure --prefix=/usr/local/python3
echo -e '033円[1;32m 5.编译 033円[0m'
make
echo -e '033円[1;32m 6.安装 033円[0m'
make install
echo -e '033円[1;32m 7.创建软链接 033円[0m'
ln -s /usr/local/python3/bin/python3 /usr/bin/python3
ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3
echo -e '033円[1;32m 8.查看pip3版本 033円[0m'
pip3 -V
echo -e '033円[1;32m 9.升级pip3 033円[0m'
pip3 install upgrade pip
echo -e '033円[1;32m 10.查看升级后的pip3版本 033円[0m'
pip3 -V
echo -e '033円[1;32m 11.查看python版本 033円[0m'
python3
echo -e "0円33[1;32m python3安装完毕! 0円33[0m"
echo -e "0円33[1;32m 清除yum安装包 0円33[0m"
yum -y clean all
echo -e '033円[1;32m 安装pip 033円[0m'
yum -y install epel-release
yum -y install python-pip
echo -e '033円[1;32m 给pip换源 033円[0m'
mkdir /root/.pip
cat <<EOF >/root/.pip/pip.conf
[global]
index-url = http://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com
EOF
echo -e '033円[1;32m 升级pip 033円[0m'
pip install --upgrade pip
echo -e '033円[1;32m 查看pip版本 033円[0m'
pip -V
exit
Loading...
Report
Report success
We will send you the feedback within 2 working days through the letter!
Please fill in the reason for the report carefully. Provide as detailed a description as possible.
Please select a report type
Cancel
Send
误判申诉

此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。

如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。

取消
提交

About

🎉centos下工具安装脚本,包含基础环境配置,Gitlab、Docker、LDAP、MongoDB、MySQL、RabbitMQ、Supervisor、Node、Python、zsh、rar、zabbix、k8s、prometheus、grafana等🎉
Cancel

Releases

No release

Contributors

All

Activities

can not load any more
Edit
About
Homepage
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/LevelCoder/centos-script.git
git@gitee.com:LevelCoder/centos-script.git
LevelCoder
centos-script
centos-script
master
Going to Help Center

Search

Comment
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register

AltStyle によって変換されたページ (->オリジナル) /