• หน้าแรก
  • หลักสูตร
  • บทความ
  • ร้านค้า
  • ติดต่อเรา
    มีคำถามเกี่ยวกับ odoo ?
    (02) 4302475
    info@odoothaidev.com
    Login
    Odoothaidev - We are Odoo professional in Thailand
    • หน้าแรก
    • หลักสูตร
    • บทความ
    • ร้านค้า
    • ติดต่อเรา

      Python3

      • บ้าน
      • บล็อก
      • Python3
      • Upgrade python 3.5 to 3.7 in Ubuntu

      Upgrade python 3.5 to 3.7 in Ubuntu

      • โพสโดย alex
      • หมวดหมู่ Python3
      • วันที่ ตุลาคม 7, 2022

      I have a requirement in our new enhancement project which only works with python 3.7 or +. The current version in using is 3.5. I have followed the below steps to upgrade from 3.5 to 3.7.

      Step 1: Check the current version

      $ python3 --version

      My output is : Python 3.5.2

      Step 2: Update Ubuntu packages

      sudo apt-get update

      Step 3: Install python3.7

      $ sudo apt-get install build-essential libpq-dev libssl-dev openssl libffi-dev zlib1g-dev
      $ sudo apt-get install python3-pip python3.7-dev
      $ sudo apt-get install python3.7

      If you come across “Unable to locate package python3.7-dev” error which means you don’t have the repository.

      Hence you need to install below packages:

      $ sudo apt-get install -y software-properties-common
      $ sudo add-apt-repository ppa:deadsnakes/ppa
      $ sudo apt-get update

      Run python3.7 install command:

      $ sudo apt-get install python3-pip python3.7-dev
      $ sudo apt-get install python3.7

      Step 4: Update python 3 to point to python 3.7

      Now python 3.7 is installed but when you type python3 it will still point to python 3.5. Hence we need to execute it as python 3.7.

      Add python 3.5 & python 3.7 to update-alternatives:

      $ sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 1
      $ sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.7 2

      Type this command to configure:

      sudo update-alternatives --config python3

      Selection Path Priority Status
      — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —
      * 0 /usr/bin/python3.5 2 auto mode
      1 /usr/bin/python3.7 1 manual mode

      Select “1” to make python 3.7 at auto mode.

      Check the version: “python3 — version” and you will see the result as “Python 3.7.9”

      • Share:
      อวตารของผู้เขียน
      alex

      โพสต์ก่อนหน้า

      ต้นทุนการนำเข้า Land Cost Sheet
      ตุลาคม 7, 2022

      โพสต์ถัดไป

      อัพเดท NodeJS ง่ายเกินไป...บน Ubuntu
      ตุลาคม 8, 2022

      ค้นหาบทความ

      หมวดหมู่

      หมวดหมู่

      • Accounting
      • Adobe XD
      • API
      • Blog
      • Business
      • Buttons
      • CRM
      • Custom Fields
      • Design / Branding
      • Django
      • Ecommerce
      • ERP
      • ERP Flow
      • Express
      • Flectra
      • Form View
      • Frontend
      • Github
      • Github
      • Grant Chart
      • Header
      • iReport
      • Jasper Server & Server
      • Jaspersoft Studio
      • Java
      • JSON-RPC
      • Lazada
      • Linux
      • MLM
      • MRP
      • Nignx Proxy
      • NodeJS
      • Odoo 10
      • Odoo 12 Module
      • Odoo 13
      • Odoo 14 Development
      • Odoo 16
      • Odoo 8
      • Odoo 9
      • Odoo API
      • Odoo Certification
      • Odoo Developer
      • Odoo Ebook
      • Odoo Enterprise
      • Odoo ERP
      • Odoo Event
      • Odoo Implement
      • Odoo Inventory
      • Odoo Report
      • Odoo V15
      • Open Source
      • Open-office
      • OpenERP 7.0
      • PhantomJS
      • Postgres SQL
      • Programming Language
      • Project Management
      • Python
      • Python3
      • Qweb
      • Reporting ระบบรายงาน
      • RML Report
      • Search View and Filters
      • Social Network
      • Statusbar
      • Ubuntu
      • Uncategorized
      • Voip & Call Center
      • Warehouse Management
      • WMS
      • Woocommerce
      • Workflow
      • XML-RPC
      • การ Implement
      • การเก็บข้อมูล Pre-Requirement
      • การเตรียมตัวเพื่อใช้งาน erp
      • ความรู้ด้านการตลาด CRM
      • ธีมเว็บไซต์ Odoo
      • ธุรกิจบริการ
      • ธุรกิจประเภทจัดอบรมสัมมนา
      • ธุรกิจสิ่งพิมพ์
      • นักพัฒนา
      • ประเภทธุรกิจที่เหมาะกับ Odoo
      • ระบบบัญชี
      • ระบบเคลม
      • ลิขสิทธิ์ – License
      Introduction LearnPress – LMS plugin

      Introduction LearnPress – LMS plugin

      Free
      From Zero to Hero with Nodejs

      From Zero to Hero with Nodejs

      Free
      Learn Python – Interactive Python

      Learn Python – Interactive Python

      $69.00

      บทความล่าสุด

      V16 Planned Date of Tasks are invisible.
      12ก.พ.2023
      Odoo Implement Methodology
      29พ.ย.2022
      Odoo Enterprise Subscription Agreement
      29พ.ย.2022
      (02) 430-2475
      info@odoothaidev.com
      Facebook Twitter Google-plus Pinterest

      Odoothaidev by OdooTeaM.

      • Privacy
      • Terms
      • Sitemap
      • Purchase

      เข้าสู่ระบบด้วยบัญชีเว็บไซต์ของคุณ

      ลืมรหัสผ่าน?

      Click to Copy