1

Hi I am new to using python and was learning how to use stacks in python. I found some web examples that use this command:

from pythonds.basic.stack import Stack

But when I tried using this command, I get this error message back:

ImportError: No module named pythonds.basic.stack

I tried google searching where to get this module installed from but can't seem to find it. Any help in identifying where I can get this from or any other way to use stack will be appreciated!

1
  • well, the module appears to be quite trivial, just copy it and study how it works. Commented Feb 25, 2016 at 11:01

2 Answers 2

1

You'll need to install it with pip, like so

pip install pythonds

or you can download the tarball and install it yourself, which you can find on PyPi

Sign up to request clarification or add additional context in comments.

1 Comment

0

This worked for me to fix that error:

sudo pip3 install pythonds

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.