[Tutor] pip issue
Anil Duggirala
anilduggirala at fastmail.fm
Fri May 3 12:11:28 EDT 2019
On Fri, 2019-05-03 at 10:14 +1000, Cameron Simpson wrote:
> On 02May2019 17:24, Anil Duggirala <anilduggirala at fastmail.fm> wrote:
> > I executed the pip3 install --user -r
> > contrib/requirements/requirements.txt (I actually did sudo before
> > that).
>
> Please don't use sudo for this. The notion "install" does not imply
> being root.
That is actually why I interrupted the process, because I remembered
that you're not supposed to do pip as sudo or 'install' anything python
as sudo.
> Try this (as _yourself_, not as root):
>
> pip3 install --verbose --user 'aiorpcX<0.18,>=0.17.0'
I tried this and got a lot of messages like:
The package https://files.pythonhosted.org/packages/60/1c/dd77ef44387e9
c51d845140cc46a27049effc04895e02f53a1006754d510/aiorpcX-0.1-py3-none-
any.whl#sha256=c6fcb4bce3eb82b9bba2d80b1c57cf3e2498462b2bc8c646a1b94263
9a0d86eb (from https://pypi.org/simple/aiorpcx/) (requires-
python:>=3.6) is incompatible with the pythonversion in use. Acceptable
python versions are:>=3.6
And then:
The package https://files.pythonhosted.org/packages/fd/2e/7d9f0dd1a8c30
8bdc7cbda32859e9b1171768b8f68c124527da83cd4f978/aiorpcX-
0.17.0.tar.gz#sha256=13ccc8361bc3049d649094b69aead6118f6deb5f1b88ad7721
1be85c4e2ed792 (from https://pypi.org/simple/aiorpcx/) (requires-
python:>=3.6) is incompatible with the pythonversion in use. Acceptable
python versions are:>=3.6
Could not find a version that satisfies the requirement
aiorpcX<0.18,>=0.17.0 (from versions: )
Cleaning up...
No matching distribution found for aiorpcX<0.18,>=0.17.0
Exception information:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pip/basecommand.py", line 215,
in main
status = self.run(options, args)
File "/usr/lib/python3/dist-packages/pip/commands/install.py", line
353, in run
wb.build(autobuilding=True)
File "/usr/lib/python3/dist-packages/pip/wheel.py", line 749, in
build
self.requirement_set.prepare_files(self.finder)
File "/usr/lib/python3/dist-packages/pip/req/req_set.py", line 380,
in prepare_files
ignore_dependencies=self.ignore_dependencies))
File "/usr/lib/python3/dist-packages/pip/req/req_set.py", line 554,
in _prepare_file
require_hashes
File "/usr/lib/python3/dist-packages/pip/req/req_install.py", line
278, in populate_link
self.link = finder.find_requirement(self, upgrade)
File "/usr/lib/python3/dist-packages/pip/index.py", line 514, in
find_requirement
'No matching distribution found for %s' % req
pip.exceptions.DistributionNotFound: No matching distribution found for
aiorpcX<0.18,>=0.17.0
> Also, try the --ignore-installed option and/or the --force-
> reinstall,
> which may cause pip3 to ignore any partial/damaged install and just
> do
> it all from scratch.
I also tried these, and got the same (or very similar) outputs, with no
avail.
Please tell me where I screwed up. I think I could learn to program in
Python, but learning about the packaging and modules and using them,
requires a lot more time, I think.
thank you Cameron,
More information about the Tutor
mailing list