当前位置:   article > 正文

为树莓派升级Python版本_树莓派 升级python

树莓派 升级python

手动升级到3.8.5

  1. sudo apt-get install -y build-essential tk-dev libncurses5-dev \
  2. libncursesw5-dev libreadline6-dev libdb5.3-dev libgdbm-dev libsqlite3-dev \
  3. libssl-dev libbz2-dev libexpat1-dev liblzma-dev zlib1g-dev libffi-dev
  4. version=3.8.5
  5. wget https://www.python.org/ftp/python/$version/Python-$version.tgz
  6. tar zxf Python-$version.tgz
  7. cd Python-$version
  8. ./configure --enable-optimizations
  9. make -j4
  10. sudo make altinstall

将被安装到   /usr/local/bin

自动升级脚本

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/笔触狂放9/article/detail/70866
推荐阅读
相关标签
  

闽ICP备14008679号