Raj
Raj

Reputation: 21

How can I install pythonds module?

when I run a programme containing:-

from pythonds.basic.stack import Stack

it says:- ImportError: No module named pythonds.basic.stack

Please help me out.

Upvotes: 2

Views: 8116

Answers (2)

BLang
BLang

Reputation: 990

If you don't have the Python PATH variable configured, then type this into your command prompt:

C:\Python34\Scripts\pip install LIBRARY NAME

This path is only and example. change it wherever you have Python in your pc.

Upvotes: 1

skovorodkin
skovorodkin

Reputation: 10284

pip install pythonds.

And then from pythonds.basic.stack import Stack. Note that it's Stack, not stack.

Upvotes: 6

Related Questions