当前位置:网站首页>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/
边栏推荐
- String
- 迅为i.MX6ULL开发板Qt系统移植-交叉编译Qt代码
- Advanced MySQL -- stored procedures and custom functions
- Software test interview question: think_ What is the function of time?
- JG-数据重置(wd)
- Codeforces暑期训练周报(7.21~7.27)
- Data problems can also be found if there is a space at the end of the field value of MySQL query criteria
- Three instance
- 软件测试面试题:如何准备测试数据?如何防止数据污染?
- 逻辑回归原理
猜你喜欢

Flutter--密码登录注册界面

PHP利用某些函数bypass waf探讨

Count the number of given strings in a string

画刷和画笔

Develop plug-ins for the recording function of flutter

Cesium add dynamic pop-up

Software process that testers need to know

我的富二代朋友

2022/07/27 learning notes (Day17) code blocks and internal classes

How the test architects of bat factories interpret various disputes of the test platform
随机推荐
Dart 代码注释和文档编写规范
软件测试面试题:如何发现数据库的相关问题?
[game] Nintendo Nintendo switch ultra detailed purchase / use guide and precautions (continuous update according to your own use...)
Gossip: an initially perfect FS is as impractical as the first version of the program requiring no bugs
Rviz uses arbotix to control robot motion
Token is used in nodejs
BigDecimal common API
Software test interview question: think_ What is the function of time?
At the meeting on June 19, SMIC may set the fastest listing record in China!
The understanding of domain adaptation in transfer learning and the introduction of three technologies
Shaanxi Yuanjie semiconductor, a laser chip manufacturer, was invested by 8 investment institutions including GF Securities and CITIC Securities
HarmonyOS 3正式发布:鸿蒙手机流畅安全,鸿蒙终端常用常新
How to make digital retail undertake the development task of the era of traffic and retention may be the key
idea常用的快捷键汇总
还在用WIFI你就OUT了:LI-FI更牛!!!
Can anime characters become "real people"? Paddegan helps you find the TA of "tear man"
Huawei's Hubble investment shares in VCSEL chip manufacturer Zonghui Xinguang
String
同心向前,Google Play 十周年啦!
Interpretation of new features | the restriction of MySQL 8.0 on gtid is lifted