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...
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
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