簡體   English   中英

Flask python 設置:安裝時出現 oauthlib 版本問題

[英]Flask python setup: oauthlib version problems while installing

我對 flask 非常陌生 - 現在只需將其設置為遵循有關如何構建 web 應用程序(包括登錄)的教程。

本教程需要的一些包是requests-oauthlibflask-oauthliboauthlib

我在 pip 安裝要求時遇到了這個問題:

ERROR: flask-oauthlib 0.9.5 has requirement oauthlib!=2.0.3,!=2.0.4,!=2.0.5,<3.0.0,>=1.1.2, but you'll have oauthlib 3.1.0 which is incompatible.

好的,我需要降級oauthlib以滿足flask-oauthlib

我將其降級並重新運行所有內容,並收到此錯誤:

ERROR: requests-oauthlib 1.3.0 has requirement oauthlib>=3.0.0, but you'll have oauthlib 2.1.0 which is incompatible.

所以現在我需要再次升級oauthlib 以滿足requests-oauthlib

所有的包裹都在抱怨什么,但由於我對此很陌生,我不知道該聽哪一個!

我的猜測是降級requests-oauthlib直到錯誤停止?

這些包都與 flask 的用戶登錄部分相關聯,所以對於那些熟悉這方面的人,我應該使用所有三個版本的穩定配置嗎?

否則,我只是盲目地猜測和降級,直到某些東西起作用。

我使用了以下組合:

pip install -I oauthlib==2.1.0
pip install -I requests-oauthlib==1.1.0

版本已過時,但滿足要求。

此外,您可以改用Authlib

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM