Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

Error executing “pip3 install -r requirements.txt” while installing odoo16, can Someone help me please?

Subscribe

Get notified when there's activity on this post

This question has been flagged
installrequirements
2 Replies
16894 Views
Avatar
B

kangxin@KANGXINdeMac-mini odoo-16.0 % pip3 install -r requirements.txt 

Ignoring freezegun: markers 'python_version < "3.8"' don't match your environment

Ignoring gevent: markers 'python_version == "3.7"' don't match your environment

Ignoring gevent: markers 'python_version > "3.7" and python_version <= "3.9"' don't match your environment

Ignoring gevent: markers 'python_version > "3.9" and python_version <= "3.10"' don't match your environment

Ignoring greenlet: markers 'python_version == "3.7"' don't match your environment

Ignoring greenlet: markers 'python_version > "3.7" and python_version <= "3.9"' don't match your environment

Ignoring greenlet: markers 'python_version > "3.9" and python_version <= "3.10"' don't match your environment

Ignoring Jinja2: markers 'python_version <= "3.10"' don't match your environment

Ignoring lxml: markers 'python_version <= "3.10"' don't match your environment

Ignoring MarkupSafe: markers 'python_version <= "3.10"' don't match your environment

Ignoring ofxparse: markers 'python_version <= "3.9"' don't match your environment

Ignoring Pillow: markers 'python_version <= "3.10"' don't match your environment

Ignoring psutil: markers 'python_version <= "3.10"' don't match your environment

Ignoring psycopg2: markers 'sys_platform != "win32" and python_version < "3.8"' don't match your environment

Ignoring psycopg2: markers 'sys_platform != "win32" and python_version >= "3.8" and python_version <= "3.10"' don't match your environment

Ignoring psycopg2: markers 'sys_platform == "win32" and python_version < "3.10"' don't match your environment

Ignoring PyPDF2: markers 'python_version <= "3.10"' don't match your environment

Ignoring pyusb: markers 'python_version <= "3.10"' don't match your environment

Ignoring reportlab: markers 'python_version <= "3.10"' don't match your environment

Ignoring Werkzeug: markers 'python_version <= "3.9"' don't match your environment

Ignoring xlrd: markers 'python_version < "3.8"' don't match your environment

Collecting Babel==2.9.1 (from -r requirements.txt (line 3))

  Using cached Babel-2.9.1-py2.py3-none-any.whl (8.8 MB)

Collecting chardet==4.0.0 (from -r requirements.txt (line 4))

  Using cached chardet-4.0.0-py2.py3-none-any.whl (178 kB)

Collecting cryptography==3.4.8 (from -r requirements.txt (line 5))

  Using cached cryptography-3.4.8-cp36-abi3-macosx_11_0_arm64.whl (1.9 MB)

Collecting decorator==4.4.2 (from -r requirements.txt (line 6))

  Using cached decorator-4.4.2-py2.py3-none-any.whl (9.2 kB)

Collecting docutils==0.16 (from -r requirements.txt (line 7))

  Using cached docutils-0.16-py2.py3-none-any.whl (548 kB)

Collecting ebaysdk==2.1.5 (from -r requirements.txt (line 8))

  Using cached ebaysdk-2.1.5.tar.gz (42 kB)

  Preparing metadata (setup.py) ... done

Collecting freezegun==0.3.15 (from -r requirements.txt (line 10))

  Using cached freezegun-0.3.15-py2.py3-none-any.whl (14 kB)

Collecting gevent==22.10.2 (from -r requirements.txt (line 14))

  Using cached gevent-22.10.2-cp311-cp311-macosx_10_9_universal2.whl (2.9 MB)

Collecting greenlet==2.0.2 (from -r requirements.txt (line 18))

  Using cached greenlet-2.0.2-cp311-cp311-macosx_10_9_universal2.whl (243 kB)

Collecting idna==2.10 (from -r requirements.txt (line 19))

  Using cached idna-2.10-py2.py3-none-any.whl (58 kB)

Collecting Jinja2==3.1.2 (from -r requirements.txt (line 21))

  Using cached Jinja2-3.1.2-py3-none-any.whl (133 kB)

Collecting libsass==0.20.1 (from -r requirements.txt (line 22))

  Using cached libsass-0.20.1.tar.gz (316 kB)

  Preparing metadata (setup.py) ... done

Collecting lxml==4.9.2 (from -r requirements.txt (line 24))

  Using cached lxml-4.9.2.tar.gz (3.7 MB)

  Preparing metadata (setup.py) ... done

Collecting MarkupSafe==2.1.2 (from -r requirements.txt (line 26))

  Using cached MarkupSafe-2.1.2-cp311-cp311-macosx_10_9_universal2.whl (17 kB)

Collecting num2words==0.5.9 (from -r requirements.txt (line 27))

  Using cached num2words-0.5.9-py3-none-any.whl (99 kB)

Collecting ofxparse==0.21 (from -r requirements.txt (line 29))

  Using cached ofxparse-0.21.tar.gz (53 kB)

  Preparing metadata (setup.py) ... done

Collecting passlib==1.7.4 (from -r requirements.txt (line 30))

  Using cached passlib-1.7.4-py2.py3-none-any.whl (525 kB)

Collecting Pillow==9.4.0 (from -r requirements.txt (line 32))

  Using cached Pillow-9.4.0-cp311-cp311-macosx_11_0_arm64.whl (3.0 MB)

Collecting polib==1.1.0 (from -r requirements.txt (line 33))

  Using cached polib-1.1.0-py2.py3-none-any.whl (25 kB)

Collecting psutil==5.9.4 (from -r requirements.txt (line 35))

  Using cached psutil-5.9.4-cp38-abi3-macosx_11_0_arm64.whl (244 kB)

Collecting psycopg2==2.9.5 (from -r requirements.txt (line 39))

  Using cached psycopg2-2.9.5.tar.gz (384 kB)

  Preparing metadata (setup.py) ... error

  error: subprocess-exited-with-error

  

  × python setup.py egg_info did not run successfully.

  │ exit code: 1

  ╰─> [25 lines of output]

      /opt/homebrew/lib/python3.11/site-packages/setuptools/config/setupcfg.py:516: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.

        warnings.warn(msg, warning_class)

      running egg_info

      creating /private/var/folders/0s/hdh7_cdx25dg12m314xdvx4c0000gn/T/pip-pip-egg-info-nckp2gk2/psycopg2.egg-info

      writing /private/var/folders/0s/hdh7_cdx25dg12m314xdvx4c0000gn/T/pip-pip-egg-info-nckp2gk2/psycopg2.egg-info/PKG-INFO

      writing dependency_links to /private/var/folders/0s/hdh7_cdx25dg12m314xdvx4c0000gn/T/pip-pip-egg-info-nckp2gk2/psycopg2.egg-info/dependency_links.txt

      writing top-level names to /private/var/folders/0s/hdh7_cdx25dg12m314xdvx4c0000gn/T/pip-pip-egg-info-nckp2gk2/psycopg2.egg-info/top_level.txt

      writing manifest file '/private/var/folders/0s/hdh7_cdx25dg12m314xdvx4c0000gn/T/pip-pip-egg-info-nckp2gk2/psycopg2.egg-info/SOURCES.txt'

      

      Error: pg_config executable not found.

      

      pg_config is required to build psycopg2 from source.  Please add the directory

      containing pg_config to the $PATH or specify the full executable path with the

      option:

      

          python setup.py build_ext --pg-config /path/to/pg_config build ...

      

      or with the pg_config option in 'setup.cfg'.

      

      If you prefer to avoid building psycopg2 from source, please install the PyPI

      'psycopg2-binary' package instead.

      

      For further information please check the 'doc/src/install.rst' file (also at

      ).

      

      [end of output]

  

  note: This error originates from a subprocess, and is likely not a problem with pip.

error: metadata-generation-failed


× Encountered error while generating package metadata.

╰─> See above for output.


note: This is an issue with the package mentioned above, not pip.

hint: See above for details.

1
Avatar
Discard
Avatar
Bhavin Patel
Best Answer

Hi, Use correct libpng library and Install Dependencies.

sudo apt-get install git python3 python3-pip python3-cffi build-essential wget python3-dev python3-venv python3-wheel libxslt-dev libzip-dev libldap2-dev libsasl2-dev python3-setuptools node-less libpng-dev libjpeg-dev gdebi -y

echo -e "\n---- Install python packages/requirements ----"

sudo -H pip3 install -r https://github.com/odoo/odoo/blob/17.0/requirements.txt




0
Avatar
Discard
Avatar
Waleed Ali Mohsen
Best Answer

Hello,

Please install libpq-dev using the below command before install the requirements.

sudo apt install libpq-dev


0
Avatar
Discard
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Related Posts Replies Views Activity
ممكن حل ل Error التالي عند تنفيذ الامر pip install -r requirements.txt اثناء تثبيت odoo17
requirements
Avatar
Avatar
1
May 24
2672
How to configure on_premise - Test databases
install
Avatar
Avatar
1
May 24
4082
how to install a community app
install
Avatar
Avatar
2
Sep 16
36461
How to stay in module page after installing the module?
install
Avatar
Avatar
2
Mar 15
6935
ERROR dataup openerp.netsvc: The model "res.partner.address" specifies an unexisting parent class "res.partner.address" You may
install
Avatar
Avatar
Avatar
2
Mar 15
6381
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now