惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

P
Proofpoint News Feed
云风的 BLOG
云风的 BLOG
Apple Machine Learning Research
Apple Machine Learning Research
Hugging Face - Blog
Hugging Face - Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Google DeepMind News
Google DeepMind News
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
雷峰网
雷峰网
B
Blog
月光博客
月光博客
博客园 - 【当耐特】
WordPress大学
WordPress大学
Microsoft Azure Blog
Microsoft Azure Blog
I
InfoQ
The GitHub Blog
The GitHub Blog
Engineering at Meta
Engineering at Meta
Jina AI
Jina AI
博客园 - Franky
MyScale Blog
MyScale Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Last Week in AI
Last Week in AI
B
Blog RSS Feed
H
Help Net Security

博客园 - 飘飘雪

Redis 的 Rehash 操作详解 Panic 与 Crash 的区别 vscode常用快捷键大全 网络流量单位 Core文件作用、设置及用法 linux批量执行工具omnitty安装及使用 linux 下误改了/etc/profile下的文件path路径导致整个系统用不了命令 linux less和more命令用法 Tair中对热key的内部处理 Tair中对大key的内部处理方式 redis的redis-benchmark用法 redis的memtier-benchmark用法 阿里巴巴的缓存类测试产品及有缺点 如何在class文件中使用pom中profile级别的 <properties> profiles下的properties与properties有什么区别 Guava 工具类之 Splitter的使用 什么是“黑天鹅”和“灰犀牛” java-sdk接口测试覆盖率统计实践 java应用接口自动化覆盖率统计实践
python安装
飘飘雪 · 2025-03-17 · via 博客园 - 飘飘雪

linux环境

 1、cd /usr/local/bin。 /root/Python-3.9.0

2. 下载wget http://storage.jd.local/testtmpfile/Python-3.9.0.tgz

3. 解压:tar -zxvf Python-3.9.0.tgz

4. cd 到python目录

5. ./configure

6. make && make install 

8、修改环境变量

  1.  vi /etc/profile 增加以下内容:

PYTHON_HOME=/usr/local/bin

export PATH=$PYTHON_HOME:$PATH

  1. 生效环境变量 source  /etc/profile

7.修改yum源:

京东参考:http://mirrors.jd.com/help

所有地址都替换成http://mirrors.jd.com

8. 修改pip源

  1. pip源:

修改 ~/.pip/pip.conf (没有就创建一个), 修改 index-url,例如:

[global]

index-url = http://mirrors.jd.com/pypi/web/simple

[install]

trusted-host = mirrors.jd.com

  1. 下载pip3: yum install python3-pip

8. 安装requests和flask    pip3 install flask requests

9. cd到测试脚本目录,chmod -R 777 ./*

10. 启动测试服务:nohup python3 -u server &

yum源:

京东参考:http://mirrors.jd.com/help

所有地址都替换成http://mirrors.jd.com

pip源:

修改 ~/.pip/pip.conf (没有就创建一个), 修改 index-url,例如:

[global]

index-url = http://mirrors.jd.com/pypi/web/simple

[install]

trusted-host = mirrors.jd.com