Python 3 installing by source code error












0















$./configure --prefix=/usr/python --enable-shared CFLAGS=-fPIC
$make -j 4
#make install


In the last step report this info:



Exception:
Traceback (most recent call last):
File "/tmp/tmp6dt7qois/pip-18.1-py2.py3-none-any.whl/pip/_internal/cli/base_command.py", line 143, in main
status = self.run(options, args)
File "/tmp/tmp6dt7qois/pip-18.1-py2.py3-none-any.whl/pip/_internal/commands/install.py", line 259, in run
with self._build_session(options) as session:
File "/tmp/tmp6dt7qois/pip-18.1-py2.py3-none-any.whl/pip/_internal/cli/base_command.py", line 79, in _build_session
insecure_hosts=options.trusted_hosts,
File "/tmp/tmp6dt7qois/pip-18.1-py2.py3-none-any.whl/pip/_internal/download.py", line 337, in __init__
self.headers["User-Agent"] = user_agent()
File "/tmp/tmp6dt7qois/pip-18.1-py2.py3-none-any.whl/pip/_internal/download.py", line 100, in user_agent
zip(["name", "version", "id"], distro.linux_distribution()),
File "/tmp/tmp6dt7qois/pip-18.1-py2.py3-none-any.whl/pip/_vendor/distro.py", line 120, in linux_distribution
return _distro.linux_distribution(full_distribution_name)
File "/tmp/tmp6dt7qois/pip-18.1-py2.py3-none-any.whl/pip/_vendor/distro.py", line 675, in linux_distribution
self.version(),
File "/tmp/tmp6dt7qois/pip-18.1-py2.py3-none-any.whl/pip/_vendor/distro.py", line 735, in version
self.lsb_release_attr('release'),
File "/tmp/tmp6dt7qois/pip-18.1-py2.py3-none-any.whl/pip/_vendor/distro.py", line 892, in lsb_release_attr
return self._lsb_release_info.get(attribute, '')
File "/tmp/tmp6dt7qois/pip-18.1-py2.py3-none-any.whl/pip/_vendor/distro.py", line 550, in __get__
ret = obj.__dict__[self._fname] = self._f(obj)
File "/tmp/tmp6dt7qois/pip-18.1-py2.py3-none-any.whl/pip/_vendor/distro.py", line 998, in _lsb_release_info
stdout = subprocess.check_output(cmd, stderr=devnull)
File "/home/sun/tools/Python-3.7.2/Lib/subprocess.py", line 395, in check_output
**kwargs).stdout
File "/home/sun/tools/Python-3.7.2/Lib/subprocess.py", line 487, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '('lsb_release', '-a')' returned non-zero exit status 1.
Makefile:1130: recipe for target 'install' failed
make: *** [install] Error 2









share|improve this question




















  • 1





    What happens when you run lsb_release -a on your system? What is the output of ls -l /usr/bin/python3? When you provide that info, please edit your question and make sure the formatting is correct.

    – slhck
    Dec 31 '18 at 15:40


















0















$./configure --prefix=/usr/python --enable-shared CFLAGS=-fPIC
$make -j 4
#make install


In the last step report this info:



Exception:
Traceback (most recent call last):
File "/tmp/tmp6dt7qois/pip-18.1-py2.py3-none-any.whl/pip/_internal/cli/base_command.py", line 143, in main
status = self.run(options, args)
File "/tmp/tmp6dt7qois/pip-18.1-py2.py3-none-any.whl/pip/_internal/commands/install.py", line 259, in run
with self._build_session(options) as session:
File "/tmp/tmp6dt7qois/pip-18.1-py2.py3-none-any.whl/pip/_internal/cli/base_command.py", line 79, in _build_session
insecure_hosts=options.trusted_hosts,
File "/tmp/tmp6dt7qois/pip-18.1-py2.py3-none-any.whl/pip/_internal/download.py", line 337, in __init__
self.headers["User-Agent"] = user_agent()
File "/tmp/tmp6dt7qois/pip-18.1-py2.py3-none-any.whl/pip/_internal/download.py", line 100, in user_agent
zip(["name", "version", "id"], distro.linux_distribution()),
File "/tmp/tmp6dt7qois/pip-18.1-py2.py3-none-any.whl/pip/_vendor/distro.py", line 120, in linux_distribution
return _distro.linux_distribution(full_distribution_name)
File "/tmp/tmp6dt7qois/pip-18.1-py2.py3-none-any.whl/pip/_vendor/distro.py", line 675, in linux_distribution
self.version(),
File "/tmp/tmp6dt7qois/pip-18.1-py2.py3-none-any.whl/pip/_vendor/distro.py", line 735, in version
self.lsb_release_attr('release'),
File "/tmp/tmp6dt7qois/pip-18.1-py2.py3-none-any.whl/pip/_vendor/distro.py", line 892, in lsb_release_attr
return self._lsb_release_info.get(attribute, '')
File "/tmp/tmp6dt7qois/pip-18.1-py2.py3-none-any.whl/pip/_vendor/distro.py", line 550, in __get__
ret = obj.__dict__[self._fname] = self._f(obj)
File "/tmp/tmp6dt7qois/pip-18.1-py2.py3-none-any.whl/pip/_vendor/distro.py", line 998, in _lsb_release_info
stdout = subprocess.check_output(cmd, stderr=devnull)
File "/home/sun/tools/Python-3.7.2/Lib/subprocess.py", line 395, in check_output
**kwargs).stdout
File "/home/sun/tools/Python-3.7.2/Lib/subprocess.py", line 487, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '('lsb_release', '-a')' returned non-zero exit status 1.
Makefile:1130: recipe for target 'install' failed
make: *** [install] Error 2









share|improve this question




















  • 1





    What happens when you run lsb_release -a on your system? What is the output of ls -l /usr/bin/python3? When you provide that info, please edit your question and make sure the formatting is correct.

    – slhck
    Dec 31 '18 at 15:40
















0












0








0








$./configure --prefix=/usr/python --enable-shared CFLAGS=-fPIC
$make -j 4
#make install


In the last step report this info:



Exception:
Traceback (most recent call last):
File "/tmp/tmp6dt7qois/pip-18.1-py2.py3-none-any.whl/pip/_internal/cli/base_command.py", line 143, in main
status = self.run(options, args)
File "/tmp/tmp6dt7qois/pip-18.1-py2.py3-none-any.whl/pip/_internal/commands/install.py", line 259, in run
with self._build_session(options) as session:
File "/tmp/tmp6dt7qois/pip-18.1-py2.py3-none-any.whl/pip/_internal/cli/base_command.py", line 79, in _build_session
insecure_hosts=options.trusted_hosts,
File "/tmp/tmp6dt7qois/pip-18.1-py2.py3-none-any.whl/pip/_internal/download.py", line 337, in __init__
self.headers["User-Agent"] = user_agent()
File "/tmp/tmp6dt7qois/pip-18.1-py2.py3-none-any.whl/pip/_internal/download.py", line 100, in user_agent
zip(["name", "version", "id"], distro.linux_distribution()),
File "/tmp/tmp6dt7qois/pip-18.1-py2.py3-none-any.whl/pip/_vendor/distro.py", line 120, in linux_distribution
return _distro.linux_distribution(full_distribution_name)
File "/tmp/tmp6dt7qois/pip-18.1-py2.py3-none-any.whl/pip/_vendor/distro.py", line 675, in linux_distribution
self.version(),
File "/tmp/tmp6dt7qois/pip-18.1-py2.py3-none-any.whl/pip/_vendor/distro.py", line 735, in version
self.lsb_release_attr('release'),
File "/tmp/tmp6dt7qois/pip-18.1-py2.py3-none-any.whl/pip/_vendor/distro.py", line 892, in lsb_release_attr
return self._lsb_release_info.get(attribute, '')
File "/tmp/tmp6dt7qois/pip-18.1-py2.py3-none-any.whl/pip/_vendor/distro.py", line 550, in __get__
ret = obj.__dict__[self._fname] = self._f(obj)
File "/tmp/tmp6dt7qois/pip-18.1-py2.py3-none-any.whl/pip/_vendor/distro.py", line 998, in _lsb_release_info
stdout = subprocess.check_output(cmd, stderr=devnull)
File "/home/sun/tools/Python-3.7.2/Lib/subprocess.py", line 395, in check_output
**kwargs).stdout
File "/home/sun/tools/Python-3.7.2/Lib/subprocess.py", line 487, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '('lsb_release', '-a')' returned non-zero exit status 1.
Makefile:1130: recipe for target 'install' failed
make: *** [install] Error 2









share|improve this question
















$./configure --prefix=/usr/python --enable-shared CFLAGS=-fPIC
$make -j 4
#make install


In the last step report this info:



Exception:
Traceback (most recent call last):
File "/tmp/tmp6dt7qois/pip-18.1-py2.py3-none-any.whl/pip/_internal/cli/base_command.py", line 143, in main
status = self.run(options, args)
File "/tmp/tmp6dt7qois/pip-18.1-py2.py3-none-any.whl/pip/_internal/commands/install.py", line 259, in run
with self._build_session(options) as session:
File "/tmp/tmp6dt7qois/pip-18.1-py2.py3-none-any.whl/pip/_internal/cli/base_command.py", line 79, in _build_session
insecure_hosts=options.trusted_hosts,
File "/tmp/tmp6dt7qois/pip-18.1-py2.py3-none-any.whl/pip/_internal/download.py", line 337, in __init__
self.headers["User-Agent"] = user_agent()
File "/tmp/tmp6dt7qois/pip-18.1-py2.py3-none-any.whl/pip/_internal/download.py", line 100, in user_agent
zip(["name", "version", "id"], distro.linux_distribution()),
File "/tmp/tmp6dt7qois/pip-18.1-py2.py3-none-any.whl/pip/_vendor/distro.py", line 120, in linux_distribution
return _distro.linux_distribution(full_distribution_name)
File "/tmp/tmp6dt7qois/pip-18.1-py2.py3-none-any.whl/pip/_vendor/distro.py", line 675, in linux_distribution
self.version(),
File "/tmp/tmp6dt7qois/pip-18.1-py2.py3-none-any.whl/pip/_vendor/distro.py", line 735, in version
self.lsb_release_attr('release'),
File "/tmp/tmp6dt7qois/pip-18.1-py2.py3-none-any.whl/pip/_vendor/distro.py", line 892, in lsb_release_attr
return self._lsb_release_info.get(attribute, '')
File "/tmp/tmp6dt7qois/pip-18.1-py2.py3-none-any.whl/pip/_vendor/distro.py", line 550, in __get__
ret = obj.__dict__[self._fname] = self._f(obj)
File "/tmp/tmp6dt7qois/pip-18.1-py2.py3-none-any.whl/pip/_vendor/distro.py", line 998, in _lsb_release_info
stdout = subprocess.check_output(cmd, stderr=devnull)
File "/home/sun/tools/Python-3.7.2/Lib/subprocess.py", line 395, in check_output
**kwargs).stdout
File "/home/sun/tools/Python-3.7.2/Lib/subprocess.py", line 487, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '('lsb_release', '-a')' returned non-zero exit status 1.
Makefile:1130: recipe for target 'install' failed
make: *** [install] Error 2






linux python






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 31 '18 at 15:36









Mokubai

56.9k16135153




56.9k16135153










asked Dec 31 '18 at 15:01









user9826029user9826029

1




1








  • 1





    What happens when you run lsb_release -a on your system? What is the output of ls -l /usr/bin/python3? When you provide that info, please edit your question and make sure the formatting is correct.

    – slhck
    Dec 31 '18 at 15:40
















  • 1





    What happens when you run lsb_release -a on your system? What is the output of ls -l /usr/bin/python3? When you provide that info, please edit your question and make sure the formatting is correct.

    – slhck
    Dec 31 '18 at 15:40










1




1





What happens when you run lsb_release -a on your system? What is the output of ls -l /usr/bin/python3? When you provide that info, please edit your question and make sure the formatting is correct.

– slhck
Dec 31 '18 at 15:40







What happens when you run lsb_release -a on your system? What is the output of ls -l /usr/bin/python3? When you provide that info, please edit your question and make sure the formatting is correct.

– slhck
Dec 31 '18 at 15:40












0






active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
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: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
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
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1389282%2fpython-3-installing-by-source-code-error%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • 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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1389282%2fpython-3-installing-by-source-code-error%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

How do I know what Microsoft account the skydrive app is syncing to?

Grease: Live!

When does type information flow backwards in C++?