python3 offline install

Posted 我有一颗五角星

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python3 offline install相关的知识,希望对你有一定的参考价值。

文章目录

download python source code

python install

mkdir -p /usr/local/python3
tar -lxvf Python-3.8.7.tar.xz
cd Python-3.8.7
mkdir python-build && cd python-build
../configure --prefix=/usr/local/python3 --enable-shared --enable-fail-if-missing

make && make install

setting soft link

ln -s /usr/local/python3/bin/python3 /usr/bin/python3
ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3

setting shared lib directory [optional]

cd /etc/ld.so.conf.d
vim python3.conf # 输入python lib的位置
# 加载
ldconfig

修改环境变量

  • vim /root/.bash_profile

    add PATH=$PATH:$HOME/bin:/usr/local/python3/bin

  • source .bash_profile

    . /root/.bash_profile

testing

python3 -v
pip3 -v

which pyhton3
whereis python3

reference link

https://www.cnblogs.com/kimyeee/p/7250560.html

以上是关于python3 offline install的主要内容,如果未能解决你的问题,请参考以下文章

Install certificates needed for Visual Studio offline installation

vim8 offline install

vim8 offline install

vim plugin offline install

vim plugin offline install

Wedora Platform Offline Installation Steps