JIKE
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users

    CentOS7 Python3.6 升级到 Python 3.9.13

    技术分享
    2
    2
    316
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • malaohu
      我是小马甲~ 🤫 last edited by

      yum install libffi-devel -y 
      
      wget https://www.python.org/ftp/python/3.9.13/Python-3.9.13.tgz
      
      tar -xvf Python-3.9.13.tgz
      
      
      rm /usr/bin/pip3
      
      rm /usr/bin/python3
      
      cd Python-3.9.13/
      
      ./configure --prefix=/usr/local/python3
      
      make && make altinstall
      
      make clean
      
      ln -s /usr/local/python3/bin/pip3.9 /usr/bin/pip3
      
      ln -s /usr/local/python3/bin/python3.9 /usr/bin/python3
      
      python3 -V
      
      

      唐宋元明清,连排小工兵!

      1 Reply Last reply Reply Quote 1
      • A
        Amazing last edited by

        点赞.jpg

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post