当前位置:网站首页>For newly installed PIP3, use no module named 'LSB_ Release 'problem
For newly installed PIP3, use no module named 'LSB_ Release 'problem
2022-07-28 01:37:00 【Life is in a hurry】
Report errors :
Exception:
Traceback (most recent call last):
File "/usr/local/python3/lib/python3.6/site-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/usr/local/python3/lib/python3.6/site-packages/pip/commands/install.py", line 272, in run
with self._build_session(options) as session:
File "/usr/local/python3/lib/python3.6/site-packages/pip/basecommand.py", line 72, in _build_session
insecure_hosts=options.trusted_hosts,
File "/usr/local/python3/lib/python3.6/site-packages/pip/download.py", line 329, in __init__
self.headers["User-Agent"] = user_agent()
File "/usr/local/python3/lib/python3.6/site-packages/pip/download.py", line 93, in user_agent
from pip._vendor import distro
File "/usr/local/python3/lib/python3.6/site-packages/pip/_vendor/distro.py", line 1050, in <module>
_distro = LinuxDistribution()
File "/usr/local/python3/lib/python3.6/site-packages/pip/_vendor/distro.py", line 594, in __init__
if include_lsb else {
}
File "/usr/local/python3/lib/python3.6/site-packages/pip/_vendor/distro.py", line 931, in _get_lsb_release_info
raise subprocess.CalledProcessError(code, cmd, stdout, stderr)
subprocess.CalledProcessError: Command 'lsb_release -a' returned non-zero exit status 1.
Traceback (most recent call last):
File "/usr/local/bin/pip3", line 11, in <module>
sys.exit(main())
File "/usr/local/python3/lib/python3.6/site-packages/pip/__init__.py", line 248, in main
return command.main(cmd_args)
File "/usr/local/python3/lib/python3.6/site-packages/pip/basecommand.py", line 251, in main
timeout=min(5, options.timeout)) as session:
File "/usr/local/python3/lib/python3.6/site-packages/pip/basecommand.py", line 72, in _build_session
insecure_hosts=options.trusted_hosts,
File "/usr/local/python3/lib/python3.6/site-packages/pip/download.py", line 329, in __init__
self.headers["User-Agent"] = user_agent()
File "/usr/local/python3/lib/python3.6/site-packages/pip/download.py", line 93, in user_agent
from pip._vendor import distro
File "/usr/local/python3/lib/python3.6/site-packages/pip/_vendor/distro.py", line 1050, in <module>
_distro = LinuxDistribution()
File "/usr/local/python3/lib/python3.6/site-packages/pip/_vendor/distro.py", line 594, in __init__
if include_lsb else {
}
File "/usr/local/python3/lib/python3.6/site-packages/pip/_vendor/distro.py", line 931, in _get_lsb_release_info
raise subprocess.CalledProcessError(code, cmd, stdout, stderr)
subprocess.CalledProcessError: Command 'lsb_release -a' returned non-zero exit status 1.
$ lsb_release -a # Use the command to view the error details
Traceback (most recent call last):
File "/usr/bin/lsb_release", line 25, in <module> # This path is important
import lsb_release
ModuleNotFoundError: No module named 'lsb_release'
# Integrate the system lsb_release.py Copy the file to the directory file with error
sudo cp /usr/lib/python3/dist-packages/lsb_release.py /usr/bin/
边栏推荐
- 内容bypass分享
- 站在数字零售转型的十字路口,我们需要用新的角度来看待它
- 3000 words and 11 pictures hard core popular science: what is edge computing? What are the connections and differences with cloud computing?
- 3年经验想拿20K,居然面了半个月都没拿到?
- Qlib教程——基于源码(二)本地数据保存与加载
- Lua advanced
- Shenzhen Huaqiang announced that it plans to invest no more than 20million yuan in BYD semiconductor
- String
- 面试题 01.06. 字符串压缩
- 登录功能实现
猜你喜欢

数仓搭建——DWS层

Sort out SQL performance optimization and collect classics!

Redefine analysis - release of eventbridge real-time event analysis platform

文章复现:超分辨率网络FSRCNN

Leetcode 2347. the best poker hand

Summary of common shortcut keys in idea

Knowledge of two-dimensional array

From functional testing to automated testing, my monthly salary has exceeded 30k+, and I have 6 years of testing experience.

Codeforces summer training weekly (7.14~7.20)

Principle of logistic regression
随机推荐
我的富二代朋友
Support Wu xiongang! Arm Chinese management sent an open letter: shocked and angry at the unwarranted allegations!
在一个字符串里面统计给定字符串的个数
Cesium add inundation analysis measurement area
JUC concurrent programming learning
BSP视频教程第21期:轻松一键实现串口DMA不定长收发,支持裸机和RTOS,含MDK和IAR两种玩法,比STM32CubeMX还方便(2022-07-24)
迅为i.MX6ULL开发板Qt系统移植-交叉编译Qt代码
Tool function: pay the non empty field value in one workspace to the same field in another workspace
JG data reset (WD)
Lua get started quickly
From functional testing to automated testing, my monthly salary has exceeded 30k+, and I have 6 years of testing experience.
8000 word explanation of OBSA principle and application practice
Gossip: an initially perfect FS is as impractical as the first version of the program requiring no bugs
Leetcode 2341. How many pairs can an array form
BAT大厂测试架构师如何解读测试平台的各种争议
《安富莱嵌入式周报》第275期:2022.07.18--2022.07.24
华为“天才少年”稚晖君又出新作,从零开始造“客制化”智能键盘
Rviz uses arbotix to control robot motion
逻辑回归原理
Software process that testers need to know