Downloading Random.py Using Anaconda
I am trying to download the random module and was wondering if I copy a code and put it in a file editor, how do I go about installing it through pip? I placed the code in notepad
Solution 1:
Just type in:
pip install random
It should work fine ! But the random module should be present by default with anaconda. Make sure you are importing it right by typing (without a capital letter):
import random
Solution 2:
Solution 3:
Use pip install random
. That works with every Python distribution.
Post a Comment for "Downloading Random.py Using Anaconda"