PIP错误:配置期间发生错误:选项使用 - feature:无效选择:' 2020-Resolver,fast-deps'
使用任何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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
只需删除pip.conf
重新安装PIP后,我还遇到了这个问题,
现在它固定了
just delete pip.conf
i also encountered this issue after reinstalling pip,
now its fixed
我面对同样的问题,我花了3天的时间尝试了许多方法。
最后,在删除2个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:
Then install pip again, Issue will be gone.
使用以下命令
'''python -m pip install pip == 21.0''''''''''''
Downgrade the pip by using the following command
'''python -m pip install pip==21.0'''
也许尝试通过REPLIT接口而不是命令行执行您正在做的任何事情,因为有时它可以使用
Maybe try doing whatever you're doing through the replit interface instead of the command line since sometimes it works