Unable to invoke Python from command line, SUSE Linux2019 Community Moderator ElectionHow to do a binary install of Python 2.7 on SUSE Linux Enterprise Server 11?Expanding root partition in SUSE LinuxHow can I have more than one possibility in a script's shebang line?Invoke python script through make commandUnable to use source command within python scriptNot able to import cv2 in python2Analog PCI from Linux PythonSUSE Linux Enterprise - Python3 error with readline in /etc/inputrcSUSE Linux Signature verification failedsystemctl zabbix invoke sudo shell command in python scrip
Is there a RAID 0 Equivalent for RAM?
How to make a list of partial sums using forEach
When and why was runway 07/25 at Kai Tak removed?
Showing mass murder in a kid's book
Pre-Employment Background Check With Consent For Future Checks
How to get directions in deep space?
Alignment of six matrices
Why is the sun approximated as a black body at ~ 5800 K?
Echo with obfuscation
Proving an identity involving cross products and coplanar vectors
Would a primitive species be able to learn English from reading books alone?
Why the "ls" command is showing the permissions of files in a FAT32 partition?
Giving feedback to someone without sounding prejudiced
How much do grades matter for a future academia position?
How do I tell my boss that I'm quitting in 15 days (a colleague left this week)
Why is participating in the European Parliamentary elections used as a threat?
How to make money from a browser who sees 5 seconds into the future of any web page?
Possible Eco thriller, man invents a device to remove rain from glass
The Digit Triangles
Deciphering cause of death?
Why does the Persian emissary display a string of crowned skulls?
How do I fix the group tension caused by my character stealing and possibly killing without provocation?
How do you justify more code being written by following clean code practices?
Why is the principal energy of an electron lower for excited electrons in a higher energy state?
Unable to invoke Python from command line, SUSE Linux
2019 Community Moderator ElectionHow to do a binary install of Python 2.7 on SUSE Linux Enterprise Server 11?Expanding root partition in SUSE LinuxHow can I have more than one possibility in a script's shebang line?Invoke python script through make commandUnable to use source command within python scriptNot able to import cv2 in python2Analog PCI from Linux PythonSUSE Linux Enterprise - Python3 error with readline in /etc/inputrcSUSE Linux Signature verification failedsystemctl zabbix invoke sudo shell command in python scrip
When I type "python" into the terminal I get the following error:
Traceback (most recent call last):
File "/usr/lib64/python2.7/encodings/__init__.py", line 100, in search_function
level=0)
File "/usr/lib64/python2.7/encodings/utf_8.py", line 2
Description=Operations Management Suite agent
^
SyntaxError: invalid syntax
Here's the version information of my SUSE installation:
SUSE Linux Enterprise Server 12 (x86_64)
VERSION = 12
PATCHLEVEL = 2
python suse
New contributor
Adam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
When I type "python" into the terminal I get the following error:
Traceback (most recent call last):
File "/usr/lib64/python2.7/encodings/__init__.py", line 100, in search_function
level=0)
File "/usr/lib64/python2.7/encodings/utf_8.py", line 2
Description=Operations Management Suite agent
^
SyntaxError: invalid syntax
Here's the version information of my SUSE installation:
SUSE Linux Enterprise Server 12 (x86_64)
VERSION = 12
PATCHLEVEL = 2
python suse
New contributor
Adam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
When I type "python" into the terminal I get the following error:
Traceback (most recent call last):
File "/usr/lib64/python2.7/encodings/__init__.py", line 100, in search_function
level=0)
File "/usr/lib64/python2.7/encodings/utf_8.py", line 2
Description=Operations Management Suite agent
^
SyntaxError: invalid syntax
Here's the version information of my SUSE installation:
SUSE Linux Enterprise Server 12 (x86_64)
VERSION = 12
PATCHLEVEL = 2
python suse
New contributor
Adam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
When I type "python" into the terminal I get the following error:
Traceback (most recent call last):
File "/usr/lib64/python2.7/encodings/__init__.py", line 100, in search_function
level=0)
File "/usr/lib64/python2.7/encodings/utf_8.py", line 2
Description=Operations Management Suite agent
^
SyntaxError: invalid syntax
Here's the version information of my SUSE installation:
SUSE Linux Enterprise Server 12 (x86_64)
VERSION = 12
PATCHLEVEL = 2
python suse
python suse
New contributor
Adam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Adam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited 22 hours ago
Rui F Ribeiro
41.6k1483141
41.6k1483141
New contributor
Adam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 22 hours ago
AdamAdam
1011
1011
New contributor
Adam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Adam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Adam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Maybe you can try re-installing with sudo apt-get remove python, then install with sudo apt-get install python. Can you also tell me what python version you are using? If this does not work, then you can install linuxbrew and install python3.7 or python2.
New contributor
Crypthusiast is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
2
Does SuSE hav sudo apt-get? I thought it just had Zypper, though I could be wrong. Zypper throws an error, too :(
– Adam
22 hours ago
can you check, i am not familiar with SuSE
– Crypthusiast
22 hours ago
Also, what do you plan to do with this server?
– Crypthusiast
22 hours ago
It's running an SAP HANA server. I wanted to run a python script that is supposed to verify the configuration is correct.
– Adam
22 hours ago
1
SuSE has not got apt. Careful with sap hana setups and software compliance.
– Rui F Ribeiro
21 hours ago
|
show 1 more comment
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Adam is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f507317%2funable-to-invoke-python-from-command-line-suse-linux%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Maybe you can try re-installing with sudo apt-get remove python, then install with sudo apt-get install python. Can you also tell me what python version you are using? If this does not work, then you can install linuxbrew and install python3.7 or python2.
New contributor
Crypthusiast is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
2
Does SuSE hav sudo apt-get? I thought it just had Zypper, though I could be wrong. Zypper throws an error, too :(
– Adam
22 hours ago
can you check, i am not familiar with SuSE
– Crypthusiast
22 hours ago
Also, what do you plan to do with this server?
– Crypthusiast
22 hours ago
It's running an SAP HANA server. I wanted to run a python script that is supposed to verify the configuration is correct.
– Adam
22 hours ago
1
SuSE has not got apt. Careful with sap hana setups and software compliance.
– Rui F Ribeiro
21 hours ago
|
show 1 more comment
Maybe you can try re-installing with sudo apt-get remove python, then install with sudo apt-get install python. Can you also tell me what python version you are using? If this does not work, then you can install linuxbrew and install python3.7 or python2.
New contributor
Crypthusiast is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
2
Does SuSE hav sudo apt-get? I thought it just had Zypper, though I could be wrong. Zypper throws an error, too :(
– Adam
22 hours ago
can you check, i am not familiar with SuSE
– Crypthusiast
22 hours ago
Also, what do you plan to do with this server?
– Crypthusiast
22 hours ago
It's running an SAP HANA server. I wanted to run a python script that is supposed to verify the configuration is correct.
– Adam
22 hours ago
1
SuSE has not got apt. Careful with sap hana setups and software compliance.
– Rui F Ribeiro
21 hours ago
|
show 1 more comment
Maybe you can try re-installing with sudo apt-get remove python, then install with sudo apt-get install python. Can you also tell me what python version you are using? If this does not work, then you can install linuxbrew and install python3.7 or python2.
New contributor
Crypthusiast is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Maybe you can try re-installing with sudo apt-get remove python, then install with sudo apt-get install python. Can you also tell me what python version you are using? If this does not work, then you can install linuxbrew and install python3.7 or python2.
New contributor
Crypthusiast is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Crypthusiast is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
answered 22 hours ago
CrypthusiastCrypthusiast
1
1
New contributor
Crypthusiast is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Crypthusiast is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Crypthusiast is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
2
Does SuSE hav sudo apt-get? I thought it just had Zypper, though I could be wrong. Zypper throws an error, too :(
– Adam
22 hours ago
can you check, i am not familiar with SuSE
– Crypthusiast
22 hours ago
Also, what do you plan to do with this server?
– Crypthusiast
22 hours ago
It's running an SAP HANA server. I wanted to run a python script that is supposed to verify the configuration is correct.
– Adam
22 hours ago
1
SuSE has not got apt. Careful with sap hana setups and software compliance.
– Rui F Ribeiro
21 hours ago
|
show 1 more comment
2
Does SuSE hav sudo apt-get? I thought it just had Zypper, though I could be wrong. Zypper throws an error, too :(
– Adam
22 hours ago
can you check, i am not familiar with SuSE
– Crypthusiast
22 hours ago
Also, what do you plan to do with this server?
– Crypthusiast
22 hours ago
It's running an SAP HANA server. I wanted to run a python script that is supposed to verify the configuration is correct.
– Adam
22 hours ago
1
SuSE has not got apt. Careful with sap hana setups and software compliance.
– Rui F Ribeiro
21 hours ago
2
2
Does SuSE hav sudo apt-get? I thought it just had Zypper, though I could be wrong. Zypper throws an error, too :(
– Adam
22 hours ago
Does SuSE hav sudo apt-get? I thought it just had Zypper, though I could be wrong. Zypper throws an error, too :(
– Adam
22 hours ago
can you check, i am not familiar with SuSE
– Crypthusiast
22 hours ago
can you check, i am not familiar with SuSE
– Crypthusiast
22 hours ago
Also, what do you plan to do with this server?
– Crypthusiast
22 hours ago
Also, what do you plan to do with this server?
– Crypthusiast
22 hours ago
It's running an SAP HANA server. I wanted to run a python script that is supposed to verify the configuration is correct.
– Adam
22 hours ago
It's running an SAP HANA server. I wanted to run a python script that is supposed to verify the configuration is correct.
– Adam
22 hours ago
1
1
SuSE has not got apt. Careful with sap hana setups and software compliance.
– Rui F Ribeiro
21 hours ago
SuSE has not got apt. Careful with sap hana setups and software compliance.
– Rui F Ribeiro
21 hours ago
|
show 1 more comment
Adam is a new contributor. Be nice, and check out our Code of Conduct.
Adam is a new contributor. Be nice, and check out our Code of Conduct.
Adam is a new contributor. Be nice, and check out our Code of Conduct.
Adam is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f507317%2funable-to-invoke-python-from-command-line-suse-linux%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown