platform: ubuntu 17.04 server
The ubuntu 17.04 server installation includes python 2.7 and python 3.5.I installed the Python 3.6.3 manually from source. However, the lsb_release -a failed:
root@birds:~# lsb_release -aTraceback (most recent call last): File "/usr/bin/lsb_release", line 25, in <module> import lsb_releaseModuleNotFoundError: No module named 'lsb_release'But if I modify the first line of the file lsb_release from#!/usr/bin/python3 -Esto#!/usr/bin/python3.5 -Esit works again.
root@birds:~# lsb_release -aLSB Version: core-9.20160110ubuntu5-amd64:core-9.20160110ubuntu5-noarch:security-9.20160110ubuntu5-amd64:security-9.20160110ubuntu5-noarchDistributor ID: UbuntuDescription: Ubuntu 17.04Release: 17.04Codename: zestyHere are the module search path:
python3.5
root@birds:~# python3.5Python 3.5.3 (default, Sep 14 2017, 22:58:41) [GCC 6.3.0 20170406] on linuxType "help", "copyright", "credits" or "license" for more information.>>> import sys>>> sys.path['', '/usr/lib/python35.zip', '/usr/lib/python3.5', '/usr/lib/python3.5/plat-x86_64-linux-gnu', '/usr/lib/python3.5/lib-dynload', '/usr/local/lib/python3.5/dist-packages', '/usr/lib/python3/dist-packages']>>> import lsb_release>>> exit()python3
root@birds:~# python3Python 3.6.3 (default, Oct 14 2017, 20:35:42) [GCC 6.3.0 20170406] on linuxType "help", "copyright", "credits" or "license" for more information.>>> import sys>>> sys.path['', '/usr/local/lib/python36.zip', '/usr/local/lib/python3.6', '/usr/local/lib/python3.6/lib-dynload', '/root/.local/lib/python3.6/site-packages', '/usr/local/lib/python3.6/site-packages']>>> import lsb_releaseTraceback (most recent call last): File "<stdin>", line 1, in <module>ModuleNotFoundError: No module named 'lsb_release'>>> exit()does anyone know how to fix it? Thanks.