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



下载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'

在安装aiextgen时,我收到了以下错误:错误:无法安装aitextgen==0.3.0、aitextgen===0.4.0、aiextgen==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。这是涉及安装路径的问题吗?非常感谢您的帮助。我使用pip3 install [module] method.安装了这些

如果我正确判断您的python路径:

c:\python310\

然后安装了python 3.10。目前,这只是一个测试版,甚至还没有正式发布。

aitextgen 0.5.2 depends on torch>=1.6.0

这里的问题是torch在pypi上只有whl文件可用,并且只能在python 3.9之前使用。您经常会遇到这个问题,因为这需要一段时间,可能是在10月份发布之后,才能正式支持许多python模块。

您的选择:

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

最新更新