PIP错误:配置期间发生错误:选项使用 - feature:无效选择:' 2020-Resolver,fast-deps'

发布于 2025-02-04 08:15:22 字数 748 浏览 5 评论 0原文

使用任何PIP命令后,显示了此错误:

An error occurred during configuration: option use-feature: invalid choice: '2020-resolver,fast-deps' (choose from '2020-resolver', 'fast-deps')

我已经在线观看并尝试过

pip config set --user global.use-feature 2020-resolver,fast-deps

,但是它说

Warning: --use-feature=2020-resolver no longer has any effect, since it is now the default dependency resolver in pip. 
This will become an error in pip 21.0. Writing to /home/runner/(repl name)/.config/pip/pip.conf

并且没有解决上述错误,因为它在键入任何PIP命令时仍会给出上述错误。之后,我尝试了仅写作

pip config set --user global.use-feature fast-deps

,但它只是返回第一个错误。 我已经安装了python3和PIP 22.1。 解决此问题的任何帮助将不胜感激!

After any pip command is used, this error is shown:

An error occurred during configuration: option use-feature: invalid choice: '2020-resolver,fast-deps' (choose from '2020-resolver', 'fast-deps')

I have looked online and tried

pip config set --user global.use-feature 2020-resolver,fast-deps

but it says

Warning: --use-feature=2020-resolver no longer has any effect, since it is now the default dependency resolver in pip. 
This will become an error in pip 21.0. Writing to /home/runner/(repl name)/.config/pip/pip.conf

and doesn't fix the error above, as it still does gives the above error when typing any pip command. After that, I tried just writing

pip config set --user global.use-feature fast-deps

but it just returns the first error.
I have python3 installed and pip 22.1.
Any help to solve this would be greatly appreciated!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

沙沙粒小 2025-02-11 08:15:22

只需删除pip.conf
重新安装PIP后,我还遇到了这个问题,
现在它固定了

just delete pip.conf
i also encountered this issue after reinstalling pip,
now its fixed

千秋岁 2025-02-11 08:15:22

我面对同样的问题,我花了3天的时间尝试了许多方法。
最后,在删除2个PIP隐藏式折叠器之后,我通过了:

C:\User\<my win account>\AppData\Roaming\pip

C:\User\<my win account>\AppData\Local\pip

再次安装PIP,问题将消失。

I faced with the same issue and it took me 3 days to try many ways.
Finally, I passed the issue after deleting 2 pip hidden-folders under the:

C:\User\<my win account>\AppData\Roaming\pip

C:\User\<my win account>\AppData\Local\pip

Then install pip again, Issue will be gone.

嘿哥们儿 2025-02-11 08:15:22

使用以下命令

'''python -m pip install pip == 21.0''''''''''''

Downgrade the pip by using the following command

'''python -m pip install pip==21.0'''

幸福%小乖 2025-02-11 08:15:22

也许尝试通过REPLIT接口而不是命令行执行您正在做的任何事情,因为有时它可以使用

Maybe try doing whatever you're doing through the replit interface instead of the command line since sometimes it works

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文