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

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
Marcus Vance

Marcus Vance

Cybersecurity & Digital Privacy Researcher

Marcus Vance is a cybersecurity auditor and technology writer dedicated to educating the public about online safety, data privacy regulations, enterprise security, and emerging cyber threats.

Share this article
Twitter Facebook Pinterest