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

    CentOS 7 Python3.6 升级到 Python3.7.12

    技术分享
    2
    2
    407
    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 malaohu

      代码如下!

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

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

      1 Reply Last reply Reply Quote 0
      • P
        wang zixiang last edited by

        支持站长的技术分享!

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