Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
4 ตอบกลับ
190170 มุมมอง

How can i install python-xlrd module in ubuntu 


from .gz or directly command line 


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi sarkar,

the easiest way is to use the pip tool which will download and install the module for you. First of all you need to open a root terminal and then type following command:

pip install xlrd
if all runs well (i hope so), you will get this message "Successfully installed xlrd". If you get a "Permission denied" error, it means that you are not logged as root.

To make sure has been installed correctly, type following command, which will show you the version of the xlrd module:

python -c "import xlrd; print xlrd.__VERSION__"


Best regards

Yvan

อวตาร
ละทิ้ง

For version 9, this breaks CSV import for me. I've logged this at https://github.com/odoo/odoo/issues/10199

คำตอบที่ดีที่สุด

If you want to install in python 3.5 here is blog http://www.probuse.com/blog/odoo-host-21/post/install-xlrd-in-python-3-5-ubuntu-397 which help to install in ubuntu.

Mustufa Rangwala

www.probuse.com

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Mustafa has provided the solution in my case. The only additional information is 

 after downloading and extracting the XLRD, you will run:

sudo python3.6 setup.py install  and not sudo python3.5 setup.py install

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.ค. 19
8688
1
พ.ย. 22
2523
ODOO 12 how can we generate Excel report แก้ไขแล้ว
7
ม.ค. 24
15155
0
ก.พ. 17
3205
0
มี.ค. 15
3899