下载 numpy、aitextgen 和其他模块时出现问题

Issue with downloading numpy, aitextgen and other modules

最后下载numpy时遇到失败,

ERROR: Could not install packages due to an OSError: [WinError 2] The system cannot find the file specified: 'c:\python310\Scripts\f2py.exe' -> 'c:\python310\Scripts\f2py.exe.deleteme'

并且在安装 aitextgen 时我收到了这个错误: 错误:无法安装 aitextgen==0.3.0、aitextgen==0.4.0、aitextgen==0.4.1、aitextgen==0.5.0、aitextgen==0.5.1 和 aitextgen==0.5.2,因为这些软件包版本有相互冲突的依赖项。`

冲突是由以下原因引起的:

aitextgen 0.5.2 depends on torch>=1.6.0
aitextgen 0.5.1 depends on torch>=1.6.0
aitextgen 0.5.0 depends on torch>=1.6.0
aitextgen 0.4.1 depends on torch>=1.6.0
aitextgen 0.3.0 depends on torch>=1.6.0

不知道是什么原因造成的。我已经使用 chocolatey 重新安装了 Python。是不是安装路径的问题?任何帮助都大大 appreciated.I 安装这些使用 pip3 install [module] method.

如果我正确判断你通往 python 的路径:

c:\python310\

那么你已经安装了 python 3.10。目前这只是测试版,还没有正式发布。

aitextgen 0.5.2 depends on torch>=1.6.0

这里的问题是 torchpypi 上只有 whl 文件可用,而且只能达到 python 3.9。你会经常遇到这个问题,因为这需要一些时间,可能会在 10 月发布后正式支持许多 python 模块。

你的选择:

  1. 安装 python 的早期版本 - 这可能是您的最佳选择。您可能不依赖任何特定的 python 3.10 功能
  2. 从源代码下载并编译 torch - 这将是棘手的,尤其是在 windows 上,而且也不能保证工作。目前 torch 没有对 python 3.10 的官方支持。在使用 pyhon 3.10
  3. 时,您可能还必须解决其他模块的类似问题