python 离线安装python环境

Last updated on July 19, 2024 pm

🧙 Questions

3.6.8python版本各种离线模块安装

☄️ Ideas

离线安装python3
mkdir -p /tmp/python
cd /tmp/python

wget https://openfly.oss-cn-shanghai.aliyuncs.com/python/python3-wheel-0.31.1-5.el7_7.noarch.rpm
wget https://openfly.oss-cn-shanghai.aliyuncs.com/python/python3-test-3.6.8-17.el7.x86_64.rpm
wget https://openfly.oss-cn-shanghai.aliyuncs.com/python/python3-setuptools-39.2.0-10.el7.noarch.rpm
wget https://openfly.oss-cn-shanghai.aliyuncs.com/python/python3-rpm-macros-3-34.el7.noarch.rpm
wget https://openfly.oss-cn-shanghai.aliyuncs.com/python/python3-rpm-generators-6-2.el7.noarch.rpm
wget https://openfly.oss-cn-shanghai.aliyuncs.com/python/python3-pip-9.0.3-8.el7.noarch.rpm
wget https://openfly.oss-cn-shanghai.aliyuncs.com/python/python3-libs-3.6.8-17.el7.x86_64.rpm
wget https://openfly.oss-cn-shanghai.aliyuncs.com/python/python3-3.6.8-17.el7.x86_64.rpm
wget https://openfly.oss-cn-shanghai.aliyuncs.com/python/python-rpm-macros-3-34.el7.noarch.rpm
wget https://openfly.oss-cn-shanghai.aliyuncs.com/python/python3-devel-3.6.8-17.el7.x86_64.rpm

rpm -ivh /tmp/python/python*
离线安装模块requests

按照顺序执行

cd /tmp/python

wget https://openfly.oss-cn-shanghai.aliyuncs.com/python/request/certifi-2018.1.18-py2.py3-none-any.whl
wget https://openfly.oss-cn-shanghai.aliyuncs.com/python/request/chardet-3.0.4-py2.py3-none-any.whl
wget https://openfly.oss-cn-shanghai.aliyuncs.com/python/request/idna-2.6-py2.py3-none-any.whl
wget https://openfly.oss-cn-shanghai.aliyuncs.com/python/request/requests-2.18.4-py2.py3-none-any.whl
wget https://openfly.oss-cn-shanghai.aliyuncs.com/python/request/urllib3-1.22-py2.py3-none-any.whl

python3 -m pip install /tmp/python/certifi-2018.1.18-py2.py3-none-any.whl
python3 -m pip install /tmp/python/chardet-3.0.4-py2.py3-none-any.whl
python3 -m pip install /tmp/python/idna-2.6-py2.py3-none-any.whl
python3 -m pip install /tmp/python/urllib3-1.22-py2.py3-none-any.whl
python3 -m pip install /tmp/python/requests-2.18.4-py2.py3-none-any.whl
离线安装模块redis

如何找寻离线安装包
python3 -m pip uninstall importlib-metadata
python3 -m pip uninstall redis
python3 -m pip install /tmp/redis-4.3.4-py3-none-any.whl
去阿里云下载 https://mirrors.aliyun.com/pypi/xxxxx
https://mirrors.aliyun.com/pypi/packages/bd/df/d4a4974a3e3957fd1c1fa3082366d7fff6e428ddb55f074bf64876f8e8ad/zipp-3.6.0-py3-none-any.whl

cd /tmp/python

wget https://openfly.oss-cn-shanghai.aliyuncs.com/python/redis/pyparsing-3.1.2-py3-none-any.whl
wget https://openfly.oss-cn-shanghai.aliyuncs.com/python/redis/wrapt-1.16.0-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
wget https://openfly.oss-cn-shanghai.aliyuncs.com/python/redis/typing_extensions-4.1.1-py3-none-any.whl
wget https://openfly.oss-cn-shanghai.aliyuncs.com/python/redis/async_timeout-4.0.2-py3-none-any.whl 
wget https://openfly.oss-cn-shanghai.aliyuncs.com/python/redis/Deprecated-1.2.14-py2.py3-none-any.whl
wget https://openfly.oss-cn-shanghai.aliyuncs.com/python/redis/packaging-21.3-py3-none-any.whl
wget https://openfly.oss-cn-shanghai.aliyuncs.com/python/redis/zipp-3.6.0-py3-none-any.whl
wget https://openfly.oss-cn-shanghai.aliyuncs.com/python/redis/importlib_metadata-4.8.3-py3-none-any.whl
wget https://openfly.oss-cn-shanghai.aliyuncs.com/python/redis/redis-4.3.4-py3-none-any.whl

python3 -m pip install /tmp/python/pyparsing-3.1.2-py3-none-any.whl
python3 -m pip install /tmp/python/wrapt-1.16.0-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
python3 -m pip install /tmp/python/typing_extensions-4.1.1-py3-none-any.whl
python3 -m pip install /tmp/python/async_timeout-4.0.2-py3-none-any.whl 
python3 -m pip install /tmp/python/Deprecated-1.2.14-py2.py3-none-any.whl
python3 -m pip install /tmp/python/packaging-21.3-py3-none-any.whl
python3 -m pip install /tmp/python/zipp-3.6.0-py3-none-any.whl
python3 -m pip install /tmp/python/importlib_metadata-4.8.3-py3-none-any.whl
python3 -m pip install /tmp/python/redis-4.3.4-py3-none-any.whl

python 离线安装python环境
https://ispong.isxcode.com/pytorch/python/python 离线安装python环境/
Author
ispong
Posted on
July 1, 2024
Licensed under