美文网首页
Python-3.13.1.tgz

Python-3.13.1.tgz

作者: xuefeng_apple | 来源:发表于2024-12-09 11:45 被阅读0次

    按照3.13 python 版本:
    sudo apt-get install -y make build-essential libssl-dev zlib1g-dev

    sudo apt-get install -y libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm

    sudo apt-get install -y libncurses5-dev libncursesw5-dev xz-utils tk-devf

    下载版本:Python-3.13.1.tgz
    https://www.python.org/ftp/python/3.13.1/

    配置buid:
    sudo ./configure --disable-gil --enable-shared --enable-optimizations

    sudo make
    sudo make install

    配置python3.13 的软连接:

    sudo ln -s /usr/local/bin/python3.13t /usr/bin/python

    sudo ln -s /usr/local/bin/pip3 /usr/bin/pip

    sudo ln -s /usr/local/bin/pip3.6 /home/xuefeng/.local/bin/pip

    sudo ln -s /usr/local/python-nogil/bin/python3.12 /usr/bin/python

    sudo ln -s /usr/local/python-nogil/bin/python3.12 /usr/bin/python

    sudo ln -s /usr/local/python-nogil/bin/python3.12 /usr/bin/python

    apt-get install python3.13-full python3.13-dev linux-headers-virtual make gcc libtool

    ecs-user@xuefeng:~$ pip -V
    pip 24.3.1 from /usr/local/lib/python3.13t/site-packages/pip (python 3.13)

    ecs-user@xuefeng:~$ python -V
    Python 3.13.1

    =============================================================================
    pip uninstall pyinstaller
    pip install https://github.com/pyinstaller/pyinstaller/archive/develop.zip

    pip uninstall setuptools
    pip install setuptools==69.0.0
    pip install

    pip install xxxx -i http://mirrors.aliyun.com/pypi/simple/ -- trusted-host mirrors.aliyun.com

    ./configure --prefix=/usr/local/python-nogil --enable-optimizations --enable-shared

    sudo apt-get remove --auto-remove python3-dev

    sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev python-openssl

    相关文章

      网友评论

          本文标题:Python-3.13.1.tgz

          本文链接:https://www.haomeiwen.com/subject/ibnnsjtx.html