Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

下载库存在问题 #395

Open
HuangZR-stu opened this issue Jan 20, 2025 · 3 comments
Open

下载库存在问题 #395

HuangZR-stu opened this issue Jan 20, 2025 · 3 comments

Comments

@HuangZR-stu
Copy link

找不到2.7.0版本,pip install没有这个版本,换了源也没有,那么这个版本怎么下载呢?
Image

安装2.4.0版本又出现其他问题Collecting geatpy
Using cached geatpy-2.4.0.tar.gz (60.0 MB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status '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\78434\AppData\Local\Temp\pip-install-bcfljoup\geatpy_4b64b77c6c584a3a9b24467ae63c6042\setup.py", line 75, in
findAndCopy(core_path)
File "C:\Users\78434\AppData\Local\Temp\pip-install-bcfljoup\geatpy_4b64b77c6c584a3a9b24467ae63c6042\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.

@geatpy-dev
Copy link
Owner

For Python3.11的版本尚未上传至pypi。目前可以在github上下载:

https://github.com/geatpy-dev/geatpy/releases/tag/v2.7.0

@HuangZR-stu
Copy link
Author

File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in call_with_frames_removed
File "C:\Users\78434\Desktop\CarbonPrice\src\lib\KTBoosttuningparametergeatpy.py", line 3, in
import geatpy as ea
File "D:\anaconda3\envs\geatpy_env\lib\site-packages\geatpy_init
.py", line 11, in
from geatpy.core.awGA import awGA
File "core\c\awGA.pyx", line 1, in init awGA
ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject 我退回到3.10版本安装这个2.7.0似乎也有问题,难道3.10是要匹配2.4.0吗

@HuangZR-stu
Copy link
Author

(geatpy_env) PS C:\Users\78434\Desktop\CarbonPrice> pip install geatpy==2.4.0
Collecting geatpy==2.4.0
Downloading geatpy-2.4.0.tar.gz (60.0 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 60.0/60.0 MB 40.7 MB/s eta 0:00:00
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [8 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "C:\Users\78434\AppData\Local\Temp\pip-install-suf8_o52\geatpy_eed0c637f5014d3d9aa852add8da67f3\setup.py", line 75, in
findAndCopy(core_path)
File "C:\Users\78434\AppData\Local\Temp\pip-install-suf8_o52\geatpy_eed0c637f5014d3d9aa852add8da67f3\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.
安装2.4.0似乎也出现了问题。这个错误依然表明 geatpy 的安装脚本在尝试访问一个不存在的路径 _core/Windows/lib64/v3.1。这通常是因为 geatpy 的源代码包中包含了指向特定平台或架构的硬编码路径,而这些路径在您的系统上并不存在。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants