gpt4 book ai didi

python - 无法在我的 CentOS 6.7 上安装 odoo 9.0

转载 作者:太空宇宙 更新时间:2023-11-03 17:19:24 25 4
gpt4 key购买 nike

2 天了,仍然无法在我的 Centos 6.7 上安装 Odoo

-我已经安装了python 2.7-我已经安装了PSQL-创建一个Odoo用户- 当我安装 Python 时出现这个错误 http://puu.sh/l2uGc/bbf94c12da.png

当我运行命令“yum install odoo”时出现以下错误。

错误:错误:包:odoo-9.0_20151029-1.noarch (odoo-nightly) 需要:nodejs-clean-css错误:包:odoo-9.0_20151029-1.noarch (odoo-nightly) 要求:python(abi) = 2.7 安装:python-2.6.6-64.el6.x86_64 (@base) python(abi) = 2.6

最佳答案

在 CentOS 上安装 Python 2.7 和 Python 3.3

准备——安装先决条件

yum groupinstall "Development tools"
yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel
  • 下载、编译和安装Python
# Python 2.7.6:
wget http://python.org/ftp/python/2.7.6/Python-2.7.6.tar.xz
tar xf Python-2.7.6.tar.xz
cd Python-2.7.6
./configure --prefix=/usr/local --enable-unicode=ucs4 --enable-shared LDFLAGS="-Wl,-rpath /usr/local/lib"
make && make altinstall

# Python 3.3.5:
wget http://python.org/ftp/python/3.3.5/Python-3.3.5.tar.xz
tar xf Python-3.3.5.tar.xz
cd Python-3.3.5
./configure --prefix=/usr/local --enable-shared LDFLAGS="-Wl,-rpath /usr/local/lib"
make && make altinstall
  • 下载并安装 Setuptools + pip
# First get the setup script for Setuptools:
wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py

# Then install it for Python 2.7 and/or Python 3.3:
python2.7 ez_setup.py
python3.3 ez_setup.py

# Now install pip using the newly installed setuptools:
easy_install-2.7 pip
easy_install-3.3 pip

# With pip installed you can now do things like this:
pip2.7 install [packagename]
pip2.7 install --upgrade [packagename]
pip2.7 uninstall [packagename]

为 odoo 9 安装 Clean CSS

Clean-css 是一个快速高效的 Node.js 库,用于缩小 CSS 文件。

根据测试,它是最好的可用之一。有什么要求?

Node.js 0.8.0+ (tested on CentOS, Ubuntu, OS X 10.6+, and Windows 7+)

如何安装clean-css?

npm install clean-css

如何将 clean-css 从 1.x 升级到 2.x?

命令行界面 (CLI)

npm update clean-css

就是这样!

引用链接:

https://www.npmjs.com/package/clean-css-pre-2.1.0

http://toomuchdata.com/2014/02/16/how-to-install-python-on-centos/

关于python - 无法在我的 CentOS 6.7 上安装 odoo 9.0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33425803/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com