Let the code speak for itself:
C:Usersthedi>pip install random
Collecting random
Could not find a version that satisfies the requirement random (from versions: )
No matching distribution found for random
C:Usersthedi>import random
‘import’ is not recognized as an internal or external command,
operable program or batch file.
asked Jul 29, 2018 at 10:24
1
ERROR:
Could not find a version that satisfies the requirement random
ERROR:
No matching distribution found for random
if the above one is your error
then follow these steps-
Press
-
ctrl+f
-
in the following website,to search module https://www.lfd.uci.edu/~gohlke/pythonlibs
NOTE—
check your python version before installing any module
After installing module copy and paste in your pip folder.
follow this path to paste your module in pip folder.
[C:UsersAdminAppDataLocalProgramsPythonPython38-32Scripts]
HOPE IT HELPS!
ZINE Mahmoud
1,2741 gold badge17 silver badges32 bronze badges
answered May 14, 2021 at 5:40
I was searching for the import «Random», none of the answers above worked but I made more research and got this. I’d be using Random as the module here.
If you’re getting:
«ERROR: Could not find a version that satisfies the requirement Random (from versions: none)
ERROR: No matching distribution found for Random», then you should check the python database here: https://pypi.org/ and search for the module you need.
If you see the module, copy the code to install the module into your shell/terminal, in this case I was copied the code for Random module which is «pip install random-string».
Make sure you’re connected to the internet, it should work.
answered Oct 11, 2022 at 23:32
You first have to enter the Python console to run Python code.
Type «python» and press enter to use the console after you have installed Python.
Also, please note that random
is a built-in module, so there’s no need to install it using pip, and that also might be why pip couldn’t locate that package.
guidot
5,0452 gold badges24 silver badges37 bronze badges
answered Jul 29, 2018 at 10:26
Quit3Simpl3Quit3Simpl3
1732 silver badges14 bronze badges
Столкнулся с ошибкой pip при установке модуля random.
Пишу в консоль:
pip install random
Выдаёт ошибку:
ERROR: Could not find a version that satisfies the requirement random (from versions: none)
ERROR: No matching distribution found for random
Пишу в консоль:
pip3 install random
Выдаёт ошибку:
ERROR: Could not find a version that satisfies the requirement random (from versions: none)
ERROR: No matching distribution found for random
(тоже самое)
Борюсь с этим уже целое утро, честно, не знаю что делать. Прошу о помощи.
Go to Python
r/Python
News about the programming language Python. If you have something to teach others post here. If you have questions or are a newbie use r/learnpython
Members
Online
•
Why Can’t I Install the Random Module?
Every time I go into command prompt, I type «pip3 install random» and I get the error «Could not a find a version that satisfies the requirement random (from versions:…) No matching distribution for random»
Any help is appreciated thank you.
Archived post. New comments cannot be posted and votes cannot be cast.
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:userssupport-ihsanapplibsite-packagespip_internalreqreq_install.py", line 307, in populate_link self.link = finder.find_requirement(self, upgrade)
File "c:userssupport-ihsanapplibsite-packagespip_internalindex.py", line 533, in find_requirement 'No matching distribution found for %s' % req DistributionNotFound: No matching distribution found for random
Zanna♦
68.9k56 gold badges215 silver badges327 bronze badges
asked May 16, 2018 at 10:08
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
answered May 16, 2018 at 10:31
16
Thread Rating:
- 0 Vote(s) — 0 Average
- 1
- 2
- 3
- 4
- 5
Can’t Get Random Module! Pls Help! |
Hello, everyone, i’m stuck with a problem. For one of my Discord bots, I need to use the random module for a command (pretty simple stuff). (base) C:Usersusuario>pip3 install random Collecting random ERROR: Could not find a version that satisfies the requirement random (from versions: none) ERROR: No matching distribution found for random (base) C:Usersusuario> I’ve also checked if I already had said module installed (nope) (base) C:Usersusuario>pip freeze alabaster==0.7.12 anaconda-client==1.7.2 anaconda-navigator==1.9.7 anaconda-project==0.8.3 asn1crypto==0.24.0 astroid==2.2.5 astropy==3.2.1 atomicwrites==1.3.0 attrs==19.1.0 Babel==2.7.0 backcall==0.1.0 backports.functools-lru-cache==1.5 backports.os==0.1.1 backports.shutil-get-terminal-size==1.0.0 backports.tempfile==1.0 backports.weakref==1.0.post1 beautifulsoup4==4.7.1 bitarray==0.9.3 bkcharts==0.2 bleach==3.1.0 bokeh==1.2.0 boto==2.49.0 Bottleneck==1.2.1 certifi==2019.6.16 cffi==1.12.3 chardet==3.0.4 Click==7.0 cloudpickle==1.2.1 clyent==1.2.2 colorama==0.4.1 comtypes==1.1.7 conda==4.7.10 conda-build==3.18.8 conda-package-handling==1.3.11 conda-verify==3.4.2 contextlib2==0.5.5 cryptography==2.7 cycler==0.10.0 Cython==0.29.12 cytoolz==0.10.0 dask==2.1.0 decorator==4.4.0 defusedxml==0.6.0 distributed==2.1.0 docutils==0.14 entrypoints==0.3 et-xmlfile==1.0.1 fastcache==1.1.0 filelock==3.0.12 Flask==1.1.1 future==0.17.1 gevent==1.4.0 glob2==0.7 greenlet==0.4.15 h5py==2.9.0 heapdict==1.0.0 html5lib==1.0.1 idna==2.8 imageio==2.5.0 imagesize==1.1.0 importlib-metadata==0.17 ipykernel==5.1.1 ipython==7.6.1 ipython-genutils==0.2.0 ipywidgets==7.5.0 isort==4.3.21 itsdangerous==1.1.0 jdcal==1.4.1 jedi==0.13.3 Jinja2==2.10.1 joblib==0.13.2 json5==0.8.4 jsonschema==3.0.1 jupyter==1.0.0 jupyter-client==5.3.1 jupyter-console==6.0.0 jupyter-core==4.5.0 jupyterlab==1.0.2 jupyterlab-server==1.0.0 keyring==18.0.0 kiwisolver==1.1.0 lazy-object-proxy==1.4.1 libarchive-c==2.8 llvmlite==0.29.0 locket==0.2.0 lxml==4.3.4 MarkupSafe==1.1.1 matplotlib==3.1.0 mccabe==0.6.1 menuinst==1.4.16 mistune==0.8.4 mkl-fft==1.0.12 mkl-random==1.0.2 mkl-service==2.0.2 mock==3.0.5 more-itertools==7.0.0 mpmath==1.1.0 msgpack==0.6.1 multipledispatch==0.6.0 navigator-updater==0.2.1 nbconvert==5.5.0 nbformat==4.4.0 networkx==2.3 nltk==3.4.4 nose==1.3.7 notebook==6.0.0 numba==0.44.1 numexpr==2.6.9 numpy==1.16.4 numpydoc==0.9.1 olefile==0.46 openpyxl==2.6.2 packaging==19.0 pandas==0.24.2 pandocfilters==1.4.2 parso==0.5.0 partd==1.0.0 path.py==12.0.1 pathlib2==2.3.4 patsy==0.5.1 pep8==1.7.1 pickleshare==0.7.5 Pillow==6.1.0 pkginfo==1.5.0.1 pluggy==0.12.0 ply==3.11 prometheus-client==0.7.1 prompt-toolkit==2.0.9 psutil==5.6.3 py==1.8.0 pycodestyle==2.5.0 pycosat==0.6.3 pycparser==2.19 pycrypto==2.6.1 pycurl==7.43.0.3 pyflakes==2.1.1 Pygments==2.4.2 pylint==2.3.1 pyodbc==4.0.26 pyOpenSSL==19.0.0 pyparsing==2.4.0 pyreadline==2.1 pyrsistent==0.14.11 PySocks==1.7.0 pytest==5.0.1 pytest-arraydiff==0.3 pytest-astropy==0.5.0 pytest-doctestplus==0.3.0 pytest-openfiles==0.3.2 pytest-remotedata==0.3.1 python-dateutil==2.8.0 pytz==2019.1 PyWavelets==1.0.3 pywin32==223 pywinpty==0.5.5 PyYAML==5.1.1 pyzmq==18.0.0 QtAwesome==0.5.7 qtconsole==4.5.1 QtPy==1.8.0 requests==2.22.0 rope==0.14.0 ruamel-yaml==0.15.46 scikit-image==0.15.0 scikit-learn==0.21.2 scipy==1.2.1 seaborn==0.9.0 Send2Trash==1.5.0 simplegeneric==0.8.1 singledispatch==3.4.0.3 six==1.12.0 snowballstemmer==1.9.0 sortedcollections==1.1.2 sortedcontainers==2.1.0 soupsieve==1.8 Sphinx==2.1.2 sphinxcontrib-applehelp==1.0.1 sphinxcontrib-devhelp==1.0.1 sphinxcontrib-htmlhelp==1.0.2 sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==1.0.2 sphinxcontrib-serializinghtml==1.1.3 sphinxcontrib-websupport==1.1.2 spyder==3.3.6 spyder-kernels==0.5.1 SQLAlchemy==1.3.5 statsmodels==0.10.0 sympy==1.4 tables==3.5.2 tblib==1.4.0 terminado==0.8.2 testpath==0.4.2 toolz==0.10.0 tornado==6.0.3 tqdm==4.32.1 traitlets==4.3.2 unicodecsv==0.14.1 urllib3==1.24.2 wcwidth==0.1.7 webencodings==0.5.1 Werkzeug==0.15.4 widgetsnbextension==3.5.0 win-inet-pton==1.1.0 win-unicode-console==0.5 wincertstore==0.2 wrapt==1.11.2 xlrd==1.2.0 XlsxWriter==1.1.8 xlwings==0.15.8 xlwt==1.3.0 zict==1.0.0 zipp==0.5.1 Pycharm does send me an alert that the module random isn’t there too import discord from discord.ext import commands import random when I type this, Pycharm throws an error «No Module named Random» I’ve Also tried using Atom but when I boot up the bot it crashes. Please someone help me getting the random module! ;-; Sidenote: I’ve also reinstalled Python in several occassions and this doesn’t give me the random module either. Posts: 6,698 Threads: 120 Joined: Sep 2016 Reputation: random is a part of Standard Library. E:div_code λ python Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 21:26:53) [MSC v.1916 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import random >>> >>> random.randint(1, 10) 4 >>> random.randint(1, 10) 2 >>>
It’s not capitalized |
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
<while> cycle is not interrupted when using the <random>module | ShityCoder | 3 | 1,670 |
Sep-04-2020, 04:05 PM Last Post: ShityCoder |
|
Some help with Classes and the random module please? | AlluminumFoil | 2 | 1,769 |
Jan-08-2020, 11:03 PM Last Post: AlluminumFoil |
|
Question about the Random Module | Exsul | 1 | 1,631 |
Mar-13-2019, 02:06 AM Last Post: ichabod801 |
|
Random module Python 3.6 | daryl_uk | 1 | 1,924 |
Oct-25-2018, 12:09 AM Last Post: micseydel |
|
Random module works in idle but not terminal. | ottowiser | 3 | 4,702 |
Apr-11-2018, 10:59 PM Last Post: ottowiser |
|
random module in while loops | yuvalsaias | 8 | 5,568 |
Feb-03-2017, 03:10 PM Last Post: wavic |