Can't figure out how to download pip/ install libraries [duplicate]










0
















This question already has an answer here:



  • Why does “pip install” inside Python raise a SyntaxError?

    5 answers



I've been trying to install the plotly library for a while. Whenever I try to run the commands, it doesn't work. I have Python (3.7.1) downloaded, and I know that because I open it and I can type in it. I try to do $ pip install plotly, as found in Getting Started with Plotly for Python.



When I do that, it says invalid syntax. I don't really get how to download https://bootstrap.pypa.io/get-pip.py, which is the secure pip install file.



curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py


seems to work, but then when I try



python get-pip.py


It doesn't work again, because of an invalid syntax. I'm not sure what I'm doing wrong, so any help would be great.










share|improve this question















marked as duplicate by coldspeed python
Users with the  python badge can single-handedly close python questions as duplicates and reopen them as needed.

StackExchange.ready(function()
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();

);
);
);
Nov 11 '18 at 0:20


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.










  • 1





    Are you sure? What does python --version print on your terminal?

    – coldspeed
    Nov 10 '18 at 23:59






  • 2





    Are you running this in a REPL? Run from a terminal (bash/zsh) please

    – coldspeed
    Nov 11 '18 at 0:20







  • 1





    Um no, all you have to do is just follow the instructions for installing by running whatever commands you need to in bash.

    – coldspeed
    Nov 11 '18 at 0:30






  • 1





    Why do you think you should be using pip to install pip?

    – coldspeed
    Nov 11 '18 at 0:32






  • 1





    Do you know where Python is installed on your computer? I have Windows & for me it's in C:Users[my username]AppDataLocalProgramsPythonPython36-32.

    – Sahil Makhijani
    Nov 11 '18 at 0:38















0
















This question already has an answer here:



  • Why does “pip install” inside Python raise a SyntaxError?

    5 answers



I've been trying to install the plotly library for a while. Whenever I try to run the commands, it doesn't work. I have Python (3.7.1) downloaded, and I know that because I open it and I can type in it. I try to do $ pip install plotly, as found in Getting Started with Plotly for Python.



When I do that, it says invalid syntax. I don't really get how to download https://bootstrap.pypa.io/get-pip.py, which is the secure pip install file.



curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py


seems to work, but then when I try



python get-pip.py


It doesn't work again, because of an invalid syntax. I'm not sure what I'm doing wrong, so any help would be great.










share|improve this question















marked as duplicate by coldspeed python
Users with the  python badge can single-handedly close python questions as duplicates and reopen them as needed.

StackExchange.ready(function()
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();

);
);
);
Nov 11 '18 at 0:20


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.










  • 1





    Are you sure? What does python --version print on your terminal?

    – coldspeed
    Nov 10 '18 at 23:59






  • 2





    Are you running this in a REPL? Run from a terminal (bash/zsh) please

    – coldspeed
    Nov 11 '18 at 0:20







  • 1





    Um no, all you have to do is just follow the instructions for installing by running whatever commands you need to in bash.

    – coldspeed
    Nov 11 '18 at 0:30






  • 1





    Why do you think you should be using pip to install pip?

    – coldspeed
    Nov 11 '18 at 0:32






  • 1





    Do you know where Python is installed on your computer? I have Windows & for me it's in C:Users[my username]AppDataLocalProgramsPythonPython36-32.

    – Sahil Makhijani
    Nov 11 '18 at 0:38













0












0








0


0







This question already has an answer here:



  • Why does “pip install” inside Python raise a SyntaxError?

    5 answers



I've been trying to install the plotly library for a while. Whenever I try to run the commands, it doesn't work. I have Python (3.7.1) downloaded, and I know that because I open it and I can type in it. I try to do $ pip install plotly, as found in Getting Started with Plotly for Python.



When I do that, it says invalid syntax. I don't really get how to download https://bootstrap.pypa.io/get-pip.py, which is the secure pip install file.



curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py


seems to work, but then when I try



python get-pip.py


It doesn't work again, because of an invalid syntax. I'm not sure what I'm doing wrong, so any help would be great.










share|improve this question

















This question already has an answer here:



  • Why does “pip install” inside Python raise a SyntaxError?

    5 answers



I've been trying to install the plotly library for a while. Whenever I try to run the commands, it doesn't work. I have Python (3.7.1) downloaded, and I know that because I open it and I can type in it. I try to do $ pip install plotly, as found in Getting Started with Plotly for Python.



When I do that, it says invalid syntax. I don't really get how to download https://bootstrap.pypa.io/get-pip.py, which is the secure pip install file.



curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py


seems to work, but then when I try



python get-pip.py


It doesn't work again, because of an invalid syntax. I'm not sure what I'm doing wrong, so any help would be great.





This question already has an answer here:



  • Why does “pip install” inside Python raise a SyntaxError?

    5 answers







python python-3.x pip






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 18 '18 at 3:14









Peter Mortensen

13.5k1984111




13.5k1984111










asked Nov 10 '18 at 23:57









Joel BanksJoel Banks

767




767




marked as duplicate by coldspeed python
Users with the  python badge can single-handedly close python questions as duplicates and reopen them as needed.

StackExchange.ready(function()
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();

);
);
);
Nov 11 '18 at 0:20


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






marked as duplicate by coldspeed python
Users with the  python badge can single-handedly close python questions as duplicates and reopen them as needed.

StackExchange.ready(function()
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function()
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function()
$hover.showInfoMessage('',
messageElement: $msg.clone().show(),
transient: false,
position: my: 'bottom left', at: 'top center', offsetTop: -7 ,
dismissable: false,
relativeToBody: true
);
,
function()
StackExchange.helpers.removeMessages();

);
);
);
Nov 11 '18 at 0:20


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.









  • 1





    Are you sure? What does python --version print on your terminal?

    – coldspeed
    Nov 10 '18 at 23:59






  • 2





    Are you running this in a REPL? Run from a terminal (bash/zsh) please

    – coldspeed
    Nov 11 '18 at 0:20







  • 1





    Um no, all you have to do is just follow the instructions for installing by running whatever commands you need to in bash.

    – coldspeed
    Nov 11 '18 at 0:30






  • 1





    Why do you think you should be using pip to install pip?

    – coldspeed
    Nov 11 '18 at 0:32






  • 1





    Do you know where Python is installed on your computer? I have Windows & for me it's in C:Users[my username]AppDataLocalProgramsPythonPython36-32.

    – Sahil Makhijani
    Nov 11 '18 at 0:38












  • 1





    Are you sure? What does python --version print on your terminal?

    – coldspeed
    Nov 10 '18 at 23:59






  • 2





    Are you running this in a REPL? Run from a terminal (bash/zsh) please

    – coldspeed
    Nov 11 '18 at 0:20







  • 1





    Um no, all you have to do is just follow the instructions for installing by running whatever commands you need to in bash.

    – coldspeed
    Nov 11 '18 at 0:30






  • 1





    Why do you think you should be using pip to install pip?

    – coldspeed
    Nov 11 '18 at 0:32






  • 1





    Do you know where Python is installed on your computer? I have Windows & for me it's in C:Users[my username]AppDataLocalProgramsPythonPython36-32.

    – Sahil Makhijani
    Nov 11 '18 at 0:38







1




1





Are you sure? What does python --version print on your terminal?

– coldspeed
Nov 10 '18 at 23:59





Are you sure? What does python --version print on your terminal?

– coldspeed
Nov 10 '18 at 23:59




2




2





Are you running this in a REPL? Run from a terminal (bash/zsh) please

– coldspeed
Nov 11 '18 at 0:20






Are you running this in a REPL? Run from a terminal (bash/zsh) please

– coldspeed
Nov 11 '18 at 0:20





1




1





Um no, all you have to do is just follow the instructions for installing by running whatever commands you need to in bash.

– coldspeed
Nov 11 '18 at 0:30





Um no, all you have to do is just follow the instructions for installing by running whatever commands you need to in bash.

– coldspeed
Nov 11 '18 at 0:30




1




1





Why do you think you should be using pip to install pip?

– coldspeed
Nov 11 '18 at 0:32





Why do you think you should be using pip to install pip?

– coldspeed
Nov 11 '18 at 0:32




1




1





Do you know where Python is installed on your computer? I have Windows & for me it's in C:Users[my username]AppDataLocalProgramsPythonPython36-32.

– Sahil Makhijani
Nov 11 '18 at 0:38





Do you know where Python is installed on your computer? I have Windows & for me it's in C:Users[my username]AppDataLocalProgramsPythonPython36-32.

– Sahil Makhijani
Nov 11 '18 at 0:38












1 Answer
1






active

oldest

votes


















0














It seems you might be running the code with Python 2 instead of Python 3. Check the Python version with the following command.



python --version


Perhaps try and execute the program again by calling Python 3 directly



python3 get-pip.py





share|improve this answer

























  • I tried all 3 option in CMD, python 3.7, and the pycharm IDE, it either says it's a syntax error or it is not recognized as an internal or external command, operable program or batch file.

    – Joel Banks
    Nov 11 '18 at 0:06











  • Sorry I assumed you were running on linux. Perhaps it might be that your environment path variables aren't set. Have you tried using the full path to execute the program? e.g. c:<your python directory path>python3 get-pip.py

    – boonwj
    Nov 11 '18 at 0:21











  • This is probably a very beginner question I should know the answer to, but how do I tell what path it should be on?

    – Joel Banks
    Nov 11 '18 at 0:26

















1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














It seems you might be running the code with Python 2 instead of Python 3. Check the Python version with the following command.



python --version


Perhaps try and execute the program again by calling Python 3 directly



python3 get-pip.py





share|improve this answer

























  • I tried all 3 option in CMD, python 3.7, and the pycharm IDE, it either says it's a syntax error or it is not recognized as an internal or external command, operable program or batch file.

    – Joel Banks
    Nov 11 '18 at 0:06











  • Sorry I assumed you were running on linux. Perhaps it might be that your environment path variables aren't set. Have you tried using the full path to execute the program? e.g. c:<your python directory path>python3 get-pip.py

    – boonwj
    Nov 11 '18 at 0:21











  • This is probably a very beginner question I should know the answer to, but how do I tell what path it should be on?

    – Joel Banks
    Nov 11 '18 at 0:26















0














It seems you might be running the code with Python 2 instead of Python 3. Check the Python version with the following command.



python --version


Perhaps try and execute the program again by calling Python 3 directly



python3 get-pip.py





share|improve this answer

























  • I tried all 3 option in CMD, python 3.7, and the pycharm IDE, it either says it's a syntax error or it is not recognized as an internal or external command, operable program or batch file.

    – Joel Banks
    Nov 11 '18 at 0:06











  • Sorry I assumed you were running on linux. Perhaps it might be that your environment path variables aren't set. Have you tried using the full path to execute the program? e.g. c:<your python directory path>python3 get-pip.py

    – boonwj
    Nov 11 '18 at 0:21











  • This is probably a very beginner question I should know the answer to, but how do I tell what path it should be on?

    – Joel Banks
    Nov 11 '18 at 0:26













0












0








0







It seems you might be running the code with Python 2 instead of Python 3. Check the Python version with the following command.



python --version


Perhaps try and execute the program again by calling Python 3 directly



python3 get-pip.py





share|improve this answer















It seems you might be running the code with Python 2 instead of Python 3. Check the Python version with the following command.



python --version


Perhaps try and execute the program again by calling Python 3 directly



python3 get-pip.py






share|improve this answer














share|improve this answer



share|improve this answer








edited Nov 18 '18 at 3:20









Peter Mortensen

13.5k1984111




13.5k1984111










answered Nov 11 '18 at 0:02









boonwjboonwj

2169




2169












  • I tried all 3 option in CMD, python 3.7, and the pycharm IDE, it either says it's a syntax error or it is not recognized as an internal or external command, operable program or batch file.

    – Joel Banks
    Nov 11 '18 at 0:06











  • Sorry I assumed you were running on linux. Perhaps it might be that your environment path variables aren't set. Have you tried using the full path to execute the program? e.g. c:<your python directory path>python3 get-pip.py

    – boonwj
    Nov 11 '18 at 0:21











  • This is probably a very beginner question I should know the answer to, but how do I tell what path it should be on?

    – Joel Banks
    Nov 11 '18 at 0:26

















  • I tried all 3 option in CMD, python 3.7, and the pycharm IDE, it either says it's a syntax error or it is not recognized as an internal or external command, operable program or batch file.

    – Joel Banks
    Nov 11 '18 at 0:06











  • Sorry I assumed you were running on linux. Perhaps it might be that your environment path variables aren't set. Have you tried using the full path to execute the program? e.g. c:<your python directory path>python3 get-pip.py

    – boonwj
    Nov 11 '18 at 0:21











  • This is probably a very beginner question I should know the answer to, but how do I tell what path it should be on?

    – Joel Banks
    Nov 11 '18 at 0:26
















I tried all 3 option in CMD, python 3.7, and the pycharm IDE, it either says it's a syntax error or it is not recognized as an internal or external command, operable program or batch file.

– Joel Banks
Nov 11 '18 at 0:06





I tried all 3 option in CMD, python 3.7, and the pycharm IDE, it either says it's a syntax error or it is not recognized as an internal or external command, operable program or batch file.

– Joel Banks
Nov 11 '18 at 0:06













Sorry I assumed you were running on linux. Perhaps it might be that your environment path variables aren't set. Have you tried using the full path to execute the program? e.g. c:<your python directory path>python3 get-pip.py

– boonwj
Nov 11 '18 at 0:21





Sorry I assumed you were running on linux. Perhaps it might be that your environment path variables aren't set. Have you tried using the full path to execute the program? e.g. c:<your python directory path>python3 get-pip.py

– boonwj
Nov 11 '18 at 0:21













This is probably a very beginner question I should know the answer to, but how do I tell what path it should be on?

– Joel Banks
Nov 11 '18 at 0:26





This is probably a very beginner question I should know the answer to, but how do I tell what path it should be on?

– Joel Banks
Nov 11 '18 at 0:26



Popular posts from this blog

𛂒𛀶,𛀽𛀑𛂀𛃧𛂓𛀙𛃆𛃑𛃷𛂟𛁡𛀢𛀟𛁤𛂽𛁕𛁪𛂟𛂯,𛁞𛂧𛀴𛁄𛁠𛁼𛂿𛀤 𛂘,𛁺𛂾𛃭𛃭𛃵𛀺,𛂣𛃍𛂖𛃶 𛀸𛃀𛂖𛁶𛁏𛁚 𛂢𛂞 𛁰𛂆𛀔,𛁸𛀽𛁓𛃋𛂇𛃧𛀧𛃣𛂐𛃇,𛂂𛃻𛃲𛁬𛃞𛀧𛃃𛀅 𛂭𛁠𛁡𛃇𛀷𛃓𛁥,𛁙𛁘𛁞𛃸𛁸𛃣𛁜,𛂛,𛃿,𛁯𛂘𛂌𛃛𛁱𛃌𛂈𛂇 𛁊𛃲,𛀕𛃴𛀜 𛀶𛂆𛀶𛃟𛂉𛀣,𛂐𛁞𛁾 𛁷𛂑𛁳𛂯𛀬𛃅,𛃶𛁼

Edmonton

Crossroads (UK TV series)