跳至內容
Odoo 選單
  • 登入
  • 免費試用
  • 應用程式
    財政
    • 會計
    • 發票
    • 開支報銷
    • 試算表 (BI)
    • 文件管理
    • 電子簽名
    銷售
    • 客戶關係
    • 銷售
    • POS 銷售點管理 - 零售
    • POS 銷售點管理 - 餐廳
    • 訂閱
    • 租賃
    網站
    • 網站製作
    • 電子商務
    • 網誌
    • 討論區
    • 線上客服
    • 網上學習
    供應鏈
    • 庫存
    • 製造管理
    • 產品生命周期
    • 採購
    • 保養維護
    • 品質管理
    人力資源
    • 員工管理
    • 招聘
    • 休假
    • 工作表現評核
    • 內部推薦
    • 車隊管理
    市場推廣
    • 社交媒體推廣
    • 電郵推廣
    • 短訊營銷
    • 活動
    • 自動化推廣
    • 網上調查
    服務
    • 專案管理
    • 工時管理
    • 外勤服務管理
    • 技術支援
    • 工作規劃
    • 預約管理
    生產力
    • 聊天
    • 批核
    • 物聯網
    • VoIP
    • 知識庫
    • WhatsApp
    第三方應用程式 Odoo Studio Odoo 雲端平台
  • 行業
    零售
    • 書店
    • 服裝店
    • 家具店
    • 食品雜貨店
    • 五金店
    • 玩具店
    餐飲及款待
    • 酒吧及酒館
    • 餐廳
    • 快餐
    • 賓館
    • 飲品分銷商
    • 酒店
    房地產
    • 地產代理公司
    • 建築師事務所
    • 建造業
    • 物業管理
    • 園藝
    • 業主聯會
    顧問服務
    • 會計公司
    • Odoo 合作夥伴
    • 市場推廣公司
    • 律師事務所
    • 人才招募
    • 審計及認證
    製造管理
    • 紡織
    • 金屬
    • 家具
    • 食品
    • 啤酒廠
    • 企業禮品
    保健與健身
    • 運動俱樂部
    • 眼鏡店
    • 健身中心
    • 健康從業人員
    • 藥房
    • 髮型屋
    技術行業
    • 雜工
    • IT 硬體與支援
    • 太陽能系統
    • 鞋匠
    • 清潔服務
    • 暖通空調服務
    其他
    • 非牟利組織
    • 環境保護機構
    • 廣告板租賃
    • 攝影服務
    • 自行車租賃
    • 軟體經銷商
    瀏覽所有行業
  • 社群
    學習
    • 教學影片
    • 使用說明
    • 認證
    • 培訓
    • 網誌
    • Podcast
    增強教學效能
    • 教育計劃
    • Scale Up! 商業遊戲
    • 到訪 Odoo
    取得軟件
    • 下載
    • 版本對照表
    • 版本說明
    合作
    • GitHub
    • 討論區
    • 活動
    • 翻譯
    • 成為合作夥伴
    • 合作夥伴服務
    • 登記你的會計服務公司
    獲取服務相關資料
    • 尋找合作夥伴
    • 尋找會計服務
    • 預約顧問諮詢
    • 安裝及推行服務
    • 客戶案例
    • 支援
    • 軟件升級
    GitHub YouTube Twitter LinkedIn Instagram Facebook Spotify
    +1 (650) 691-3277
    預約示範
  • 定價
  • 技術支援

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

  • 客戶關係
  • e-Commerce
  • 會計
  • 庫存
  • PoS
  • 專案管理
  • MRP
All apps
只限註冊用戶才可與社群互動。
所有帖文 人 獎章
標籤 (查看所有)
odoo accounting v14 pos v15
關於此討論區
只限註冊用戶才可與社群互動。
所有帖文 人 獎章
標籤 (查看所有)
odoo accounting v14 pos v15
關於此討論區
支援

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

訂閱

此帖文有活動時,接收通知

此問題已被標幟
installrequirements
2 回覆
16946 瀏覽次數
頭像
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
頭像
捨棄
頭像
Bhavin Patel
最佳答案

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
頭像
捨棄
頭像
Waleed Ali Mohsen
最佳答案

Hello,

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

sudo apt install libpq-dev


0
頭像
捨棄
喜歡這則討論?不要只閱讀,加入發表意見吧!

今天就建立帳戶,享受獨家功能,與我們精彩的社群互動!

註冊
相關帖文 回覆 瀏覽次數 活動
ممكن حل ل Error التالي عند تنفيذ الامر pip install -r requirements.txt اثناء تثبيت odoo17
requirements
頭像
頭像
1
5月 24
2682
How to configure on_premise - Test databases
install
頭像
頭像
1
5月 24
4092
how to install a community app
install
頭像
頭像
2
9月 16
36467
How to stay in module page after installing the module?
install
頭像
頭像
2
3月 15
6945
ERROR dataup openerp.netsvc: The model "res.partner.address" specifies an unexisting parent class "res.partner.address" You may
install
頭像
頭像
頭像
2
3月 15
6381
社群
  • 教學影片
  • 使用說明
  • 討論區
開源
  • 下載
  • GitHub
  • Runbot 測試環境
  • 翻譯
服務
  • odoo.sh 網頁寄存
  • 支援
  • 升級
  • 自訂功能開發
  • 教育及培訓
  • 尋找會計服務
  • 尋找合作夥伴
  • 成為合作夥伴
關於我們
  • 關於 Odoo 公司
  • 品牌資產
  • 聯絡我們
  • 招聘
  • 活動
  • Podcast
  • 網誌
  • 客戶
  • 法律 • 私隱政策
  • 安全性
الْعَرَبيّة 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 是一套開放源碼的商業管理系統,涵蓋你公司全部的營運需要,包括客戶關係管理(CRM)、電子商務、會計、庫存管理、POS(銷售點管理)、專案管理等應用程式。

Odoo 的獨特價值是非常簡單易用,同時將不同應用程式完美整合。

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