Skip to content

How to install a Module ‐ PythonSoft

Okmeque1 edited this page Apr 12, 2024 · 2 revisions

How to install a module

What is a module?

Modules are like add-ons. If you want a GUI for a program, then you must install tkinter using the guide below.

Requirements :

1 -> An internet connection(5 megabit to 100 gigabit, really anything)

2 -> A compatible Python version, version 3.8.5 < above recommended

3 -> Enough hard disk space.

4 -> PIP.EXE

How do I do it?

1 -> Find your Python install location. In Windows XP & Vista, click "All Programs" and find Python(should be "Python x.x(**bit)" as the format) then right click on it. Click "Open File" location. In Windows 7 and Later, search "Python" and find it with the same format as XP & Vista.

2 -> You may notice something : these are shortcuts from the start menu. So right click on the Python Shortcut and click "Open File Location".

3 -> You are now in the Python install directory. Copy the directory by clicking at the file path bar(should look like this : "C:\users\okmeque1\appdata\local\programs\python", but replace this directory with what you have) then pressing CTRL-A then CTRL-C. You have now copied the location of the install directory.

4 -> Now you want to navigate to that folder using command prompt as Pip does not have a GUI. If you are running Windows 8 or older, you must cd in to the directory manually. You will just do first "cd /" which will reset the directory prompt to the root of the drive. Make sure that your drive is the same drive as in command prompt. Then you will cd into the directories 1 at a time. So if the directory of the Python install is C:\users\okmeque1\appdata\local\programs\python, you will do "cd users", then "cd okmeque1", then "cd appdata" and so on until you reach the Python folder, where the last command you will run is "cd scripts". If you are on Windows 10 or later, you may just do "cd {clipboard/CTRL-V}" as this feature is supported. Then run "cd scripts" and you have reached the pip.exe home

5 -> The last command you will run in this place is "pip.exe --install {pip install name}".

Below is a chart for all of the modules.

Module Name Pip Install Name
Random random
Time time
OpenCV2 opencv-python
Cryptography cryptography
OS os
tKinter tkinter
Turtle Graphics turtle
PyQT5 - W7 √ pyqt5
Requests requests
Sys/Part Util psutil
Get Password getpass
Hash Library hashlib

Clone this wiki locally