且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

将site.py文件添加到项目后导入错误

更新时间:2023-10-23 12:31:16

site.py内置阴影

site.py shadows built-in site module.

由于导入了错误的site.py模块,所以从未设置用于搜索用户安装的软件包的路径,因此解释器无法找到bs4模块.

Due to wrong site.py module being imported, paths used to search for user-installed packages are never set, therefore interpreter is unable to find bs4 module.