geatpy icon indicating copy to clipboard operation
geatpy copied to clipboard

搞了两天了,安装不了

Open lanyilin666 opened this issue 1 year ago • 6 comments

C:\Users\30110>pip install geatpy Collecting geatpy Using cached geatpy-2.4.0.tar.gz (60.0 MB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [9 lines of output] Traceback (most recent call last): File "", line 2, in File "", line 34, in File "C:\Users\30110\AppData\Local\Temp\pip-install-j1f8w25r\geatpy_cd0e2c4429d6468da02329939f143e4c\setup.py", line 75, in findAndCopy(core_path) File "C:\Users\30110\AppData\Local\Temp\pip-install-j1f8w25r\geatpy_cd0e2c4429d6468da02329939f143e4c\setup.py", line 58, in findAndCopy for files in os.listdir(path): ^^^^^^^^^^^^^^^^ FileNotFoundError: [WinError 3] 系统找不到指定的路径。: '_core/Windows/lib64/v3.1' [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed

× Encountered error while generating package metadata. ╰─> See above for output.

note: This is an issue with the package mentioned above, not pip. hint: See above for details.

lanyilin666 avatar Aug 21 '24 04:08 lanyilin666

可以本地安装试试呢,我刚刚安装2.7.0成功了 我的命令如下:pip install XXX\geatpy-2.7.0-cp311-cp311-win_amd64.whl 先下载适合自己python版本的whl文件,再进行本地安装。XXX是你的whl文件所在路径

Decade-rider avatar Aug 21 '24 08:08 Decade-rider

我python版本是3.12 好像不支持这个版本吧

lanyilin666 avatar Aug 21 '24 08:08 lanyilin666

2.7是有支持3.12的可以下载的

Decade-rider avatar Aug 21 '24 08:08 Decade-rider

在Github release里可以下载Python 3.12的版本的安装包。

geatpy-dev avatar Aug 23 '24 06:08 geatpy-dev

哦哦,我把我python版本转成3.10了,一下就安好了,谢谢各位

lanyilin666 avatar Aug 23 '24 06:08 lanyilin666

可以本地安装试试呢,我刚刚安装2.7.0成功了 我的命令如下:pip install XXX\geatpy-2.7.0-cp311-cp311-win_amd64.whl 先下载适合自己python版本的whl文件,再进行本地安装。XXX是你的whl文件所在路径

我为什么克隆下载了之后,没有看到whl 文件呢,请问是怎么本地安装的呢?

HuangZR-stu avatar Jan 20 '25 19:01 HuangZR-stu