Problem with pip, using Python 3.6.5

Petr Laškevič
Petr Laškevič used Ask the Experts™
on
Hello, I am a beginner in Python and I started about a week ago.  I would like to continue with Python, but there is a problem: I successfully added Python to path, so I could open MS Powershell and then type py to get started with some features like downloading modules with pip.  As I was told, I need to add pip to my path too and make a new environment variable. I copied the exact location of the file in this way C:\Users\Myname\Downloads\get-pip (get-pip was name of the file after download). I also tried C:\Users\Myname\Downloads\get-pip.py. Both of these options did not work. Then I thought that I didn't download it correctly. So I started as they wrote on their official website. https://pip.pypa.io/en/stable/installing/ After the first step MS Powershell showed me the following Error:
curl : Požadavek byl přerušen: Nelze vytvořit zabezpečený kanál SSL/TLS..
At line:1 char:1
+ curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebExc
   eption
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
I use Windows 10. I would be very pleased, if you would answer me. If any additional information is needed,just tell me , I will try to do my best to provide it.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Author

Commented:
I am 13 years old and I am a beginner in Python.
Top Expert 2014

Commented:
pip doesn't have to be in your path. You can change to the pip directory before issuing a pip command

Author

Commented:
But when I type py in Microsoft Powershell, python launches, when I type pip or pip3, only errors occur.
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Top Expert 2014

Commented:
You might change the directory in the PS environment before you enter the pip command
what should always work is, that instead od typing pip you type.


py -m pip

Open in new window

if that doesn't work (so if pip is really not installed on your system) you can try to

download https://bootstrap.pypa.io/get-pip.py with your web browser and save it to any directory

cd <directory where you downloaded get-pip.py to>
py  get-pip.py

Open in new window


Let's assume pip is already installed and you want to install for example the python module requests you should be able to type

py -m pip install requests

Open in new window



Can you also check whether date and time of your computer are set up correctly.
You might have some weird SSL errors if the date is off (for  example the year or month is not correct)

Author

Commented:
Hello,I tried downloading pip once again from  https://bootstrap.pypa.io/get-pip.py and it downloaded. However, I don't understand,
  what do you mean by: cd <directory where you downloaded get-pip.py to>. I tried typing: py get-pip.py in MS Powershell and it said  
PS C:\Users\Andrej> py get-pip.py
C:\Users\Andrej\AppData\Local\Programs\Python\Python36-32\python.exe: can't open file 'get-pip.py': [Errno 2] No such file or directory. Then I tried for the second type, now instead of  py get-pip.py I typed py, pressed enter and then typed get-pip.py. Powershell said:
 Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'get' is not defined
I just downloaded pip and date and time on my computer is correct.
Before downloading pip:

Did you try already whether the command:

py -m pip

Open in new window


is working?

Normally you shouldn't have to download pip manually.

Not let's assume this doesn't work:  I try to rephrase my previous answer.

Depending on your browser setup and the browser that you use, downloaded files will be saved in a specific directory / Folder:

I for example use Firefox and configured it to prompt me every time I download a file for the directory to store it.
So if I would choose to download get-pip.py to C:\
then I would type in the cmd / or powershell window
c:
cd \

Open in new window

to goto the directory where I can find get-pip.py
and only then I would type
py get-pip.py

Open in new window


if you configured nothing special then it will probably be in the default downloads' directory which is probablye something like

C:\Users\USERNAME\Downloads

Open in new window


For me it would be something like
C:\Users\gelonida\Downloads
Then I would type
cd C:\Users\gelonida\Downloads
py get-pip.py

Open in new window


If your windows is non english then perhaps the folder has names in your language for
User or Downloads


However b

Author

Commented:
Thank you so much!!!!!!! Only your tips worked!!!!
That's great!
Out of curiosity. Which exact tip was helpful for you?

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial