简体   繁体   English

使用`pip install django`在windows上安装django时出错

[英]Error when installing django on windows using `pip install django`

I get an error when installing django using pip command使用pip命令安装django时出现错误

ERROR: After October 2020 you may experience errors when installing or updating
packages. This is because pip will change the way that it resolves dependency conflicts.

We recommend you use --use-feature=2020-resolver to test your packages with the
new resolver before it becomes the default.

drf-yasg 1.17.0 requires six>=1.10.0, but you'll have six 1.9.0 which is incompatible.

can anyone help?有人可以帮忙吗?
Thanks in advance提前致谢

According tothis announcement , pip will introduce a new dependency resolver in October 2020, which will be more robust but might break some existing setups.根据此公告,pip 将在 2020 年 10 月引入一个新的依赖解析器,它会更强大,但可能会破坏一些现有的设置。 Therefore they are suggesting users to try running their pip install scripts at least once (in dev mode) with this option: --use-feature=2020-resolver to anticipate any potential issue before the new resolver becomes the default in October 2020 with pip version 20.3.因此,他们建议用户使用此选项至少尝试运行一次 pip 安装脚本(在开发模式下):--use-feature=2020-resolver 以在新的解析器在 2020 年 10 月使用 pip 成为默认解析器之前预测任何潜在问题版本 20.3。

On behalf of the PyPA, I am pleased to announce that we have just released pip 20.2, a new version of pip.我代表 PyPA 很高兴地宣布,我们刚刚发布了 pip 20.2,这是 pip 的新版本。 You can install it by running python -m pip install --upgrade pip.您可以通过运行 python -m pip install --upgrade pip 来安装它。

The highlights for this release are:此版本的亮点是:

The beta of the next-generation dependency resolver is available Faster installations from wheel files Improved handling of wheels containing non-ASCII file contents Faster pip list using parallelized network operations Installed packages now contain metadata about whether they were directly requested by the user (PEP 376's REQUESTED file) The new dependency resolver is off by default because it is not yet ready for everyday use.下一代依赖解析器的测试版可用 更快地从轮文件安装 改进了对包含非 ASCII 文件内容的轮子的处理 使用并行网络操作更快的 pip 列表 安装的包现在包含有关它们是否直接由用户请求的元数据(PEP 376 的REQUESTED 文件)默认情况下,新的依赖项解析器处于关闭状态,因为它尚未准备好供日常使用。 The new dependency resolver is significantly stricter and more consistent when it receives incompatible instructions, and reduces support for certain kinds of constraints files, so some workarounds and workflows may break.新的依赖解析器在收到不兼容的指令时更加严格和一致,并减少对某些类型的约束文件的支持,因此一些变通方法和工作流程可能会中断。 Please test it with the --use-feature=2020-resolver flag.请使用 --use-feature=2020-resolver 标志对其进行测试。 Please see our guide on how to test and migrate , and how to report issues.请参阅我们关于如何测试和迁移以及如何报告问题的指南。 We are preparing to change the default dependency resolution behaviour and make the new resolver the default in pip 20.3 (in October 2020).我们正准备更改默认的依赖解析行为,并使新的解析器成为 pip 20.3(2020 年 10 月)中的默认值。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM