Failure to load module introcs

So i recently had to rebuild my pc and re-install python ver 3.13.1. I can import the math module but when i try and import introcs i get the following error:

PS C:\Users\rober> python
Python 3.13.1 (tags/v3.13.1:0671451, Dec 3 2024, 19:06:28) [MSC v.1942 64 bit (AMD64)] on win32
Type “help”, “copyright”, “credits” or “license” for more information.

import math
import introcs
Traceback (most recent call last):
File “”, line 1, in
import introcs
ModuleNotFoundError: No module named ‘introcs’

Anyone have any idea why this would happen. I installed this version of python on my laptop and desktop all with the same result.

Thanks
Rob

Hello,

go back to the command prompt by typing exit. Once there, type: pip list -v to show you all of the modules that are part of the Python v3.13 library package ecosystem. Does the module introcs show up in the list? If not, it has not yet been installed.

To install:

py -m pip install introcs

Retype pip list -v to verify that it has been added to the list. If it doesn’t show in the list, close the cmd window and reopen.

By the way, to properly enter your script, use the following instructions: