Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

requirements.txt中的依赖存在模块冲突 #62

Open
unsatisfying opened this issue Jul 27, 2023 · 0 comments
Open

requirements.txt中的依赖存在模块冲突 #62

unsatisfying opened this issue Jul 27, 2023 · 0 comments

Comments

@unsatisfying
Copy link

描述

在requirements.txt中有两个依赖pymongo和bson。这两个包存在模块冲突。安装pymongo时在site-packages文件夹中(安装第三方软件包的默认文件夹)会安装bson模块。随后再安装bson包时(同样存在bson模块),会将pymongo包的bson模块覆盖。值得注意的是这两个包中的bson模块有些文件并不相同。

复现

pip install -r requirements.txt

修改

我不确定这种覆盖问题会对本项目造成什么样的影响,因为它可能会隐藏在深层的调用链中,至少是想要call pymongo的bson模块时,实际它已经被覆盖了,于是调用的是bson的bson模块。所以覆盖行为肯定会发生。如果即使对本项目没影响,也请确认后麻烦给我回复一个确认该行为的commits。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant