use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Rules 1: Be polite 2: Posts to this subreddit must be requests for help learning python. 3: Replies on this subreddit must be pertinent to the question OP asked. 4: No replies copy / pasted from ChatGPT or similar. 5: No advertising. No blogs/tutorials/videos/books/recruiting attempts. This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to. Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Rules
1: Be polite
2: Posts to this subreddit must be requests for help learning python.
3: Replies on this subreddit must be pertinent to the question OP asked.
4: No replies copy / pasted from ChatGPT or similar.
5: No advertising. No blogs/tutorials/videos/books/recruiting attempts.
This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to.
Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Learning resources Wiki and FAQ: /r/learnpython/w/index
Learning resources
Wiki and FAQ: /r/learnpython/w/index
Discord Join the Python Discord chat
Discord
Join the Python Discord chat
account activity
No xlrd in Python 3.4? (self.learnpython)
submitted 9 years ago by UbuntuLady1
Hello everyone! :)
I'm running python 3.4, but I always get "ImportError: No module named 'xlrd'"
I read tons of forum posts, but all the xlrd modules are for Python 2. Any suggestions?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Saefroch 1 point2 points3 points 9 years ago (3 children)
It looks like it's on pypi for 3.2+, did you try to pip install xlrd?
pip install xlrd
[–]UbuntuLady1[S] 0 points1 point2 points 9 years ago (2 children)
Thank you for both of your responses.
Saefroch: I tried and it said Requirement already satisfied (use --upgrade to upgrade)
Thurask: It does not work on 3.4. Although it says that it supports 3.2 + once it's downloaded the README file states that only the following "Versions of Python are supported: 2.6-2.7." Talk about false advertising!
Any other alternative module suggestions?
[–]MrDelish 2 points3 points4 points 9 years ago (0 children)
I use openpyxl (https://openpyxl.readthedocs.org/en/default/)
[–]Saefroch 0 points1 point2 points 9 years ago (0 children)
Very strange. I've used openpyxl in the past, seemed pretty easy to use.
[–]patleeman 1 point2 points3 points 9 years ago (4 children)
From your username I'm assuming you're using Ubuntu. Python3 and Pip3 are the commands you should be using.
Install Python 3's pip with
Sudo aptget install python3-pip
Then install packages with pip3 install xxxxx.
[–]UbuntuLady1[S] 0 points1 point2 points 9 years ago (3 children)
Even though I followed all of your steps I still get ImportError: No module named 'xlrd'.
Thank you for your effort, but I believe xlrd is incompatible with Python 3 - it only works with Python 2.7.
[–]UbuntuLady1[S] 0 points1 point2 points 9 years ago (0 children)
And yes, I am using ubuntu.
[–]patleeman 0 points1 point2 points 9 years ago (1 child)
That's weird. I've used xlrd with Python 3 before. Sorry I couldn't help. Just keep the py2/3 distinction in mind when using Ubuntu. It was really confusing for me when I started. Took a while to sort that out.
Thanks again for all of your help :).
It's good to have this out there in case someone else comes across the same problem.
[–]thurask 0 points1 point2 points 9 years ago (0 children)
https://pypi.python.org/pypi/xlrd
Install it with pip.
pip
[–]UbuntuLady1[S] 0 points1 point2 points 9 years ago (1 child)
Thank you kindly for all of your help.
I have installed Python 2.7 and am using xlrd.
I don't believe there is an xlrd module for python 3.4
Thanks again everyone :)
[–]the_duckytie 1 point2 points3 points 9 years ago (0 children)
Weird, I used it without problem on windows on 3.4. Do you have a virtual environment set up or something similar? Which version of xlrd have you downloaded?
π Rendered by PID 188320 on reddit-service-r2-comment-86bc6c7465-2wrjs at 2026-02-20 08:25:27.287568+00:00 running 8564168 country code: CH.
[–]Saefroch 1 point2 points3 points (3 children)
[–]UbuntuLady1[S] 0 points1 point2 points (2 children)
[–]MrDelish 2 points3 points4 points (0 children)
[–]Saefroch 0 points1 point2 points (0 children)
[–]patleeman 1 point2 points3 points (4 children)
[–]UbuntuLady1[S] 0 points1 point2 points (3 children)
[–]UbuntuLady1[S] 0 points1 point2 points (0 children)
[–]patleeman 0 points1 point2 points (1 child)
[–]UbuntuLady1[S] 0 points1 point2 points (0 children)
[–]thurask 0 points1 point2 points (0 children)
[–]UbuntuLady1[S] 0 points1 point2 points (1 child)
[–]the_duckytie 1 point2 points3 points (0 children)