WARNING: The scripts pipenv and pipenv-resolver are installed in
'/Library/Frameworks/Python.framework/Versions/3.8/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-
warn-script-location.
为什么我收到此错误消息 以及我该如何解决
答案 0 :(得分:0)
您需要将其添加到PATH变量中。
示例:
import pymongo
client = pymongo.MongoClient()
users_db = client['UsersDB']
users_collection = users_db['users']
def check(collection, elements):
return bool(collection.find_one(filter={'$or' : [item for item in elements.items()]}))