XLRD Package not be able to call - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: XLRD Package not be able to call (/thread-21312.html) |
XLRD Package not be able to call - dhiliptcs - Sep-24-2019 I want to extract data from Excel sheet and I got the following error like ImportError: No module named xlrd Then I looked at where Python is reading from by entering the following commands import sys print sys.path ['', '/opt/miniconda/current/lib/python27.zip', '/opt/miniconda/current/lib/python2.7', '/opt/miniconda/current/lib/python2.7/plat-linux2', '/opt/miniconda/current/lib/python2.7/lib-tk', '/opt/miniconda/current/lib/python2.7/lib-old', '/opt/miniconda/current/lib/python2.7/lib-dynload', '/opt/miniconda/current/lib/python2.7/site-packages', '/opt/miniconda/current/lib/python2.7/site-packages/setuptools-15.0-py2.7.egg'] but, xlrd package is in the location "/opt//projects/software/miniconda_3.7.3/pkgs/xlrd-1.1.0-py35_0/lib/python3.5/site-packages/xlrd" can anyone help me in how to call the xlrd package and eventually get me out of specified Import Error above? RE: XLRD Package not be able to call - Larz60+ - Sep-24-2019 Are you running miniconda_3.7.3? the instance of xlrd is for that version of python only. If you are running another version, you will need to install xlrd fro that version. RE: XLRD Package not be able to call - dhiliptcs - Sep-24-2019 ah.. alrite... now I got it. Thank you |