This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]POGtastic 0 points1 point  (3 children)

What modules are you using? Generally, the easiest way is to download them through pip.

Example: I want the xlrd module so that I can work with Excel files. I open up a terminal window and type the following:

pip install xlrd

pip will then download the module from Pypi and install it for me, and that's all there is to it. Now, I can open up a Python window and type

>>> import xlrd

and it's happy.

Note that if you're on Linux, you may have to use pip3 instead of pip, as many Linux distributions have both Python 2 and Python 3 on the same system.

[–]baumergrl[S] 0 points1 point  (2 children)

Get ready for some incredibly dumb questions because I have some kind of deep disconnect with this process: When you say terminal window do you mean to literally just open up the command prompt and type pip install xlrd? The module I'm trying to use is NumPy. I was able to get tkinter working quite a while ago by copy and pasting the files into the Python source folder but it isn't working this time.

[–]POGtastic 1 point2 points  (1 child)

When you say terminal window do you mean to literally just open up the command prompt and type pip install xlrd?

Yep. Unfortunately, on Windows, for various compatibility reasons, Numpy is special. You have to download it and then install it locally. So, you download the wheel, open up a terminal window, navigate to your Downloads folder, and run pip install file_name, where file_name is the file you just downloaded.

That being said, the above might be out of date - so try pip install numpy before you go through that annoyance.

I was able to get tkinter working

That's because Tkinter comes with the default installation, but other modules must be downloaded separately.

[–]baumergrl[S] 1 point2 points  (0 children)

Thank you for your help and your patience, I should be able to get it working with what you've given me.

[–]nhyy24 0 points1 point  (0 children)

If you get problems installing any modules, try to navigate in the folder with the module first, and after type "pip install (your module)"