Celeb Glow
general | March 31, 2026

Problem while installing random in Python [closed]

I am using python 2.7.4 and having a problem while running pip install random. It comes up with this error:

Collecting random Could not find a version that satisfies the requirement random (from versions: )
No matching distribution found for random

Can anyone help me out in this matter?

Results of pip install -vvv random # verbose output :

File "c:\users\support-ihsan\app\lib\site-packages\pip_internal\req\req_install.py", line 307, in populate_link self.link = finder.find_requirement(self, upgrade)
File "c:\users\support-ihsan\app\lib\site-packages\pip_internal\index.py", line 533, in find_requirement 'No matching distribution found for %s' % req DistributionNotFound: No matching distribution found for random 
1

1 Answer

This mean that there no package with name random .

Also random module should be present by default . Cause this code works fine on machine with python2

 import random num = random.randint(10,20) print (num)

And I am too getting the same error when I type this command

pip install random
16