2

According to the this random strings can be generated importing rstr module.

import rstr
rstr.rstr('ABC')

but when I compile this following error is given?

ImportError: No module named rstr

I'm using python 3.3. What could be the reason?

1
  • 2
    This question is unrelated to random string generation, it's a problem with installing the package rstr Commented May 31, 2013 at 4:12

2 Answers 2

4

You need to download the module and then make sure your python script can find it.

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

2 Comments

I have searched google many times and couldn’t find the link..:(. Could you please publish the link to download rstr module for python?
The link is on the page you linked to, in the box on the right-hand side, but here's a direct link: bitbucket.org/leapfrogdevelopment/rstr/get/c4a73a036e10.zip
1

The rstr package should now be available on PyPI. You can install it by running pip install rstr

If you need more help, there's some information about using pip here.

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.