服务器日志中未显示名为Pandas的模块,但该模块已安装在服务器中

问题描述 投票:0回答:1

[我尝试将Pandas用于Ubuntu 16.04.6 LTS(GNU / Linux 4.4.0-173-通用x86_64)(服务器)。我希望将其用于Python2.7。我尝试了sudo pip install pandassudo apt-get install python-pandaspip install --upgrade --force-reinstall pandas它正在安装中,但是当我尝试在Odoo的(ERP)代码中使用它时,显示错误No module named pandas

sudo apt-get install python-pandas之后显示:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
python-pandas is already the newest version (0.17.1-3ubuntu2).
0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.

我也尝试过:

Python 2.7.12 (default, Oct  8 2019, 14:14:10) 
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.

>>> import pandas as pd
>>> pd.show_versions()

INSTALLED VERSIONS
------------------
commit: None
python: 2.7.12.final.0
python-bits: 64
OS: Linux
OS-release: 4.4.0-173-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: None.None

pandas: 0.24.2
pytest: 2.8.7
pip: 20.0.2
setuptools: 44.0.0
Cython: None
numpy: 1.16.6
scipy: 0.17.0
pyarrow: None
xarray: None
IPython: None
sphinx: None
patsy: 0.4.1
dateutil: 2.8.1
pytz: 2019.3
blosc: None
bottleneck: None
tables: 3.2.2
numexpr: 2.4.3
feather: None
matplotlib: 1.5.1
openpyxl: 2.3.0
xlrd: 0.9.4
xlwt: 0.7.5
xlsxwriter: 0.7.3
lxml.etree: 3.5.0
bs4: 4.4.1
html5lib: 0.999
sqlalchemy: None
pymysql: None
psycopg2: 2.6.1 (dt dec mx pq3 ext lo64)
jinja2: 2.8
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: None

Terminal

2020-02-08 06:28:49,633 24303 INFO ? odoo: Odoo version 10.0
2020-02-08 06:28:49,634 24303 INFO ? odoo: Using configuration file at /etc/techysuat.conf
2020-02-08 06:28:49,634 24303 INFO ? odoo: addons paths: ['/opt/odoo10/techysuat/.local/share/Odoo/addons/10.0', u'/opt/odoo10/techysuat/addons', u'/opt/odoo10/techysuat/addons/xn_modules', u'/usr/local/lib/python2.7/dist-packages/pandas', '/opt/odoo10/techysuat/odoo/addons']
2020-02-08 06:28:49,634 24303 INFO ? odoo: database: techysuat@default:default
2020-02-08 06:28:49,655 24303 INFO ? odoo.service.server: HTTP service (werkzeug) running on netexodoo2:7030
2020-02-08 06:28:52,884 24303 INFO ? odoo.addons.report.models.report: Will use the Wkhtmltopdf binary at /usr/bin/wkhtmltopdf
2020-02-08 06:28:53,349 24303 INFO ? odoo.http: HTTP Configuring static files
2020-02-08 06:28:53,373 24303 INFO Techys_UAT odoo.modules.loading: loading 1 modules...
2020-02-08 06:28:53,404 24303 INFO Techys_UAT odoo.modules.loading: 1 modules loaded in 0.03s, 0 queries
2020-02-08 06:28:53,445 24303 INFO Techys_UAT odoo.modules.loading: loading 56 modules...
2020-02-08 06:28:53,727 24303 CRITICAL Techys_UAT odoo.modules.module: Couldn't load module xn_registration_form
2020-02-08 06:28:53,727 24303 CRITICAL Techys_UAT odoo.modules.module: No module named pandas

提前感谢。

python pandas odoo odoo-10
1个回答
0
投票

代替'pip',使用'pip2'并运行命令。

您可以尝试以下操作:

sudo pip2 install pandas
© www.soinside.com 2019 - 2024. All rights reserved.