转发: No pip for my Python 3.6.5!

2018-07-09 Thread 卢 嘉幸


发送自 Windows 10 版邮件应用


发件人: 卢 嘉幸
发送时间: Tuesday, June 26, 2018 8:25:58 PM
收件人: python-list@python.org
主题: No pip for my Python 3.6.5!

Hi~

I am a beginner with Python.
My computer is of Windows version.
And I dowloaded the lastest version of python on the https://www.python.org/ .
My book, Automate the Boring Stuff With Python, teaches me to install a 
third-party module with the command line: pip install send2trash (for example).
But there comes the error message !!!

What is going wrong?
It makes no sense since my Python is 3.6.5 version.
I doubt that my poor Python doesn’t have a pip.

Please tell me why and help me!!



-- 
https://mail.python.org/mailman/listinfo/python-list


Re: No pip for my Python 3.6.5!

2018-07-09 Thread Abdur-Rahmaan Janhangeer
according to all probabilities you have pip, you just need to add pip to
path

go to environment variables -> path

then add ;

Abdur-Rahmaan Janhangeer
https://github.com/Abdur-rahmaanJ

On Mon, 9 Jul 2018, 16:14 卢 嘉幸,  wrote:

>
>
> 发送自 Windows 10 版邮件应用
>
> 
> 发件人: 卢 嘉幸
> 发送时间: Tuesday, June 26, 2018 8:25:58 PM
> 收件人: python-list@python.org
> 主题: No pip for my Python 3.6.5!
>
> Hi~
>
> I am a beginner with Python.
> My computer is of Windows version.
> And I dowloaded the lastest version of python on the
> https://www.python.org/ .
> My book, Automate the Boring Stuff With Python, teaches me to install a
> third-party module with the command line: pip install send2trash (for
> example).
> But there comes the error message !!!
>
> What is going wrong?
> It makes no sense since my Python is 3.6.5 version.
> I doubt that my poor Python doesn’t have a pip.
>
> Please tell me why and help me!!
>
>
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: 转发: No pip for my Python 3.6.5!

2018-07-09 Thread Thomas Jollans
Welcome to the list!

On 2018-07-09 10:14, 卢 嘉幸 wrote:
> But there comes the error message !!!
> 
> What is going wrong?

Without you telling us what "the error message" is, I'm afraid there's
no way anybody can possibly know.

-- Thomas

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: 转发: No pip for my Python 3.6.5!

2018-07-09 Thread Wolfgang Maier

On 07/09/2018 10:14 AM, 卢 嘉幸 wrote:


Hi~

I am a beginner with Python.
My computer is of Windows version.
And I dowloaded the lastest version of python on the https://www.python.org/ .
My book, Automate the Boring Stuff With Python, teaches me to install a 
third-party module with the command line: pip install send2trash (for example).
But there comes the error message !!!

What is going wrong?
It makes no sense since my Python is 3.6.5 version.
I doubt that my poor Python doesn’t have a pip.



Does the following work for you?

py -3 -m pip install send2trash

work for you? If so, you can either continue to run pip like this (it is 
a good way) or you'll have to make pip.exe discoverable from your PATH 
as suggested by Abdur-Rahmaan.


Best,
Wolfgang

--
https://mail.python.org/mailman/listinfo/python-list


Re: 转发: No pip for my Python 3.6.5!

2018-07-09 Thread Steven D'Aprano
On Mon, 09 Jul 2018 08:14:04 +, 卢 嘉幸 wrote:

> I am a beginner with Python.
> My computer is of Windows version.
> And I dowloaded the lastest version of python on the
> https://www.python.org/ . My book, Automate the Boring Stuff With
> Python, teaches me to install a third-party module with the command
> line: pip install send2trash (for example). But there comes the error
> message !!!
> 
> What is going wrong?

Without knowing what the error message says, we cannot tell what the 
error is.


Make sure you are running the Windows shell, not Python, and then try 
this command:

python3 -m ensurepip --upgrade



If that fails, COPY AND PASTE the full error, don't use a screen shot, 
and don't try to retype it.

You could also try either of these instead:

py -m pip install send2trash

py3 -m pip install send2trash



But without seeing the actual errors you are getting, I'm just guessing 
what the problem is.



-- 
Steven D'Aprano
"Ever since I learned about confirmation bias, I've been seeing
it everywhere." -- Jon Ronson

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: 转发: No pip for my Python 3.6.5!

2018-07-09 Thread Mark Lawrence

On 09/07/18 17:02, Steven D'Aprano wrote:

On Mon, 09 Jul 2018 08:14:04 +, 卢 嘉幸 wrote:


I am a beginner with Python.
My computer is of Windows version.
And I dowloaded the lastest version of python on the
https://www.python.org/ . My book, Automate the Boring Stuff With
Python, teaches me to install a third-party module with the command
line: pip install send2trash (for example). But there comes the error
message !!!

What is going wrong?


Without knowing what the error message says, we cannot tell what the
error is.


Make sure you are running the Windows shell, not Python, and then try
this command:

 python3 -m ensurepip --upgrade



I don't think there is a python3 on Windows.



If that fails, COPY AND PASTE the full error, don't use a screen shot,
and don't try to retype it.

You could also try either of these instead:

 py -m pip install send2trash


This will pick the default python.  I've no idea how this is defined 
nowadays.




 py3 -m pip install send2trash


Shouldn't that be:-

py -3 -m...?





But without seeing the actual errors you are getting, I'm just guessing
what the problem is.



--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

--
https://mail.python.org/mailman/listinfo/python-list


EuroPython 2018: EuroPython 2018: Women’s Django Workshop

2018-07-09 Thread M.-A. Lemburg
We are pleased to host and sponsor a free Women’s Django Workshop on
Monday 23rd July, from 9am-6pm.


* EuroPython Women’s Django Workshop *

https://ep2018.europython.eu/en/events/womens-django-workshop/


What to expect
--

Would you like to learn about how to build websites, but don’t know
where to start? A group of volunteers will lead you through HTML, CSS,
Python & Django to build a blog in a one day workshop. No prior
programming knowledge is needed to participate!


How to register
---

If you would like to take part, apply for a spot by filling in our
application form. Participation is free of charge, but does require
registration:

https://docs.google.com/forms/d/e/1FAIpQLScQEWU5d4aqbpXkUvVYkdYaMO-iG5vQ1ujR08Cux1sktOzHMQ/viewform

The EuroPython Society sponsors this event, providing space, catering
and making available up to 30 discounted student rate conference
tickets to the workshop attendees.


Reminder: Book your EuroPython 2018 tickets soon


Please make sure you book your ticket in the coming days. We will
switch to late bird rates next week.

  https://ep2018.europython.eu/en/registration/buy-tickets/

If you want to attend the training sessions, please buy a training
pass. We only have very few left and will close sales for these soon.


Help spread the word


Please help us spread this message by sharing it on your social
networks as widely as possible. Thank you !

Link to the blog post:

https://blog.europython.eu/post/175710624987/europython-2018-womens-django-workshop

Tweet:

https://twitter.com/europython/status/1016329799864856577


Enjoy,
--
EuroPython 2018 Team
https://ep2018.europython.eu/
https://www.europython-society.org/

-- 
https://mail.python.org/mailman/listinfo/python-list


Generator Comprehensions

2018-07-09 Thread Steven D'Aprano
Based on feedback from people annoyed at having to write "comprehensions 
and generator expressions" to refer to what ought to be a single concept, 
Guido has given the thumbs up for a documentation change to start 
referring to "generator comprehensions".


https://mail.python.org/pipermail/python-dev/2018-July/154554.html


This now combines four related syntax under one umbrella term:

Comprehension:

  - list comprehension [expr for x in values]

  - set comprehension {expr for x in values}

  - dict comprehension {key:value for x in values}

  - generator comprehension (expr for x in values) 
a.k.a. generator expression



-- 
Steven D'Aprano
"Ever since I learned about confirmation bias, I've been seeing
it everywhere." -- Jon Ronson

-- 
https://mail.python.org/mailman/listinfo/python-list