RedHat离线安装Python3以及各种依赖

2020-12-13 02:10

阅读:371

标签:ges   openssl   bsp   python3   情况下   package   nss   pca   sql   

RedHat离线安装Python3以及各种依赖

1, yum install -y ncurses-libs zlib-devel mysql-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel

2, 下载Python3的源文件包
    ./configure
    make
    make install
    这时应该可以默认安装了pip3

3, 在有网络的环境下,
    pip3 freeze > require.txt  # 
    pip3 download -r require.txt -d packages

4, 在没有网络的情况下,
    cd packages
ls |xargs pip3 install 使用 pip3 install -r require.txt --root packages 无效

 

RedHat离线安装Python3以及各种依赖

标签:ges   openssl   bsp   python3   情况下   package   nss   pca   sql   

原文地址:https://www.cnblogs.com/stono/p/11027602.html


评论


亲,登录后才可以留言!