Can't figure out how to download pip/ install libraries [duplicate]
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.
python python-3.x pip
marked as duplicate by coldspeed
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.
|
show 28 more comments
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.
python python-3.x pip
marked as duplicate by coldspeed
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 doespython --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
|
show 28 more comments
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.
python python-3.x pip
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
python python-3.x pip
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
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
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 doespython --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
|
show 28 more comments
1
Are you sure? What doespython --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
|
show 28 more comments
1 Answer
1
active
oldest
votes
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
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
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
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
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
add a comment |
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
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
add a comment |
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
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
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
add a comment |
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
add a comment |
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