Re: [Tutor] pip issue

2019-05-04 Thread Anil Duggirala
> > 9a0d86eb (from https://pypi.org/simple/aiorpcx/) (requires-
> > python:>=3.6) is incompatible with the pythonversion in use.
> > Acceptable
> > python versions are:>=3.6
> 
> Ok, so it clearly says you need a Python version greater
> than or equal to 3.6. Which version of Python are you using?

I am running python3 version 3.5.3. That is an incredible coincidence
then, that the problem arose specifically when I interrupted an install
process. I thought that was it.
Thanks, that clears it up. Debian loves to have older software as
default.

> Can you clarify your current status since that will help
> us provide suitable solutions.

> Normally when learning a language it's best to start with
> the basics which don't require installing third party
> libraries. Is there some specific task you need this
> library for?

Actually. I am not planning to do any coding relating to this. I am
just looking to install a piece of software, that required installing
some dependencies.

Thanks very much.
This will make my move to Ubuntu happen earlier I think,
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] pip issue

2019-05-03 Thread Alan Gauld via Tutor
On 03/05/2019 17:11, Anil Duggirala wrote:

>> 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:
...
> 9a0d86eb (from https://pypi.org/simple/aiorpcx/) (requires-
> python:>=3.6) is incompatible with the pythonversion in use. Acceptable
> python versions are:>=3.6

Ok, so it clearly says you need a Python version greater
than or equal to 3.6. Which version of Python are you using?

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

Can you clarify your current status since that will help
us provide suitable solutions.

Can you already program in any other language? (If so which?)
Or are you a complete beginner programmer?

Normally when learning a language it's best to start with
the basics which don't require installing third party
libraries. Is there some specific task you need this
library for?
Is there not an existing python distribution that
includes the library already - like Enthought or
Anaconda say?

Before trying to solve the problem the hard way it might
be worth first checking if a simpler alternative exists?


-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos


___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] pip issue

2019-05-03 Thread Anil Duggirala
On Fri, 2019-05-03 at 10:14 +1000, Cameron Simpson wrote:
> On 02May2019 17:24, Anil Duggirala  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,
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] pip issue

2019-05-02 Thread Mats Wichmann
On 5/2/19 6:14 PM, Cameron Simpson wrote:
> On 02May2019 17:24, Anil Duggirala  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.

> The whole point of --user is to install packages in your personal
> account without troubling with the system packages. Doing that as root
> only installs the packages for root, generally a useless thing as you
> shouldn't be running normal stuff as root.
> 
> Just do pip3 as yourself.

also, despite the large volume of old text that says otherwise, it's
better not to invoke pip as a command, but as a module. Thus, instead of

pip3 install --user blah

do:

python3 -m pip install --user blah

assuming you wanted it to work for "python3". the latter way makes sure
the package ends up in a place that matches the Python you're going to
use - and you are going to use this code from another Python program,
no?  (that change is not going to fix your problem, it's just general
advice). Most Linux systems these days have several Python versions, and
the more you use Python the more likely it is you got something that set
up another Python version (virtualenv, bundled Python, etc). Mac users
often have two: the system one, and the one you actually use for your
own work.  Even Windows users end up with several Pythons, e.g. one you
installed, one that got installed with Visual Studio, etc.

___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] pip issue

2019-05-02 Thread Cameron Simpson

On 02May2019 17:24, Anil Duggirala  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.


The whole point of --user is to install packages in your personal 
account without troubling with the system packages. Doing that as root 
only installs the packages for root, generally a useless thing as you 
shouldn't be running normal stuff as root.


Just do pip3 as yourself.

I then interrupted the process with Ctrl-C. Now, when I execute the 
same command I get:

Collecting aiorpcX<0.18,>=0.17.0 (from -r contrib/requirements/requirements.txt 
(line 5))
 Could not find a version that satisfies the requirement aiorpcX<0.18,>=0.17.0 
(from -r contrib/requirements/requirements.txt (line 5)) (from versions: )
No matching distribution found for aiorpcX<0.18,>=0.17.0 (from -r 
contrib/requirements/requirements.txt (line 5))


That is odd, though I've seen this kind of complaint from pip before for 
some packages.


Try this (as _yourself_, not as root):

 pip3 install --verbose --user 'aiorpcX<0.18,>=0.17.0'

For me, this just worked.

Also, the output includes the location where pip is installing stuff.  
You could always just clean that area out and retry.


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 suspect this has something to do with me interrupting the install process, 
because I interrupted it precisely when it was fetching the package that it 
can't find now.
Let me know if I should be asking this elsewhere.


This is a fine place to ask this question.

Cheers,
Cameron Simpson 
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Pip issue

2018-10-06 Thread Mats Wichmann
On 10/05/2018 09:50 AM, Adam Eyring wrote:
> Hi all,
> I just joined since I'm new to working in python for data management and
> have been stumped on using pip. My understanding is that it should be in my
> scripts folder of Windows Python3.6 (downloaded from python.org), but it's
> not, so it doesn't work to run "pip install ". I see there's
> get-pip.py, but the documentation on using it is confusing. Thanks for your
> help.
> Adam

wherever you're told to

  pip install foo

instead do

  python -m pip install foo

it should take care of the path problems you're having, and is now the
recommended way anyway since that way the things you install are sure to
match the running python version.

(the "python -m name" stanza means "python, please run 'name' as a module)



___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor