MetaGPT icon indicating copy to clipboard operation
MetaGPT copied to clipboard

Pip install error

Open jawwad-ahmed2809 opened this issue 11 months ago • 3 comments

Bug description I am facing the following issue when I try to do pip install on my

PS C:\Users\jawwa\Downloads\AI Agents> pip install metagpt Collecting metagpt Using cached metagpt-0.8.1-py3-none-any.whl.metadata (15 kB) Collecting aiohttp==3.8.6 (from metagpt) Using cached aiohttp-3.8.6.tar.gz (7.4 MB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Collecting channels==4.0.0 (from metagpt) Using cached channels-4.0.0-py3-none-any.whl.metadata (1.5 kB) Collecting faiss-cpu==1.7.4 (from metagpt) Using cached faiss-cpu-1.7.4.tar.gz (57 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Collecting fire==0.4.0 (from metagpt) Using cached fire-0.4.0.tar.gz (87 kB) Preparing metadata (setup.py) ... done Collecting typer==0.9.0 (from metagpt) Using cached typer-0.9.0-py3-none-any.whl.metadata (14 kB) Collecting lancedb==0.4.0 (from metagpt) Using cached lancedb-0.4.0-py3-none-any.whl.metadata (16 kB) Collecting loguru==0.6.0 (from metagpt) Using cached loguru-0.6.0-py3-none-any.whl.metadata (21 kB) Collecting meilisearch==0.21.0 (from metagpt) Using cached meilisearch-0.21.0-py3-none-any.whl.metadata (8.8 kB) Collecting numpy==1.24.3 (from metagpt) Using cached numpy-1.24.3.tar.gz (10.9 MB) Installing build dependencies ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [33 lines of output] Traceback (most recent call last): File "C:\Users\jawwa\anaconda3\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in main() File "C:\Users\jawwa\anaconda3\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 335, in main json_out['return_val'] = hook(**hook_input['kwargs']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\jawwa\anaconda3\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 112, in get_requires_for_build_wheel backend = _build_backend() ^^^^^^^^^^^^^^^^ File "C:\Users\jawwa\anaconda3\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 77, in build_backend obj = import_module(mod_path) ^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\jawwa\anaconda3\Lib\importlib_init.py", line 90, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 1387, in _gcd_import File "", line 1360, in _find_and_load File "", line 1310, in _find_and_load_unlocked File "", line 488, in _call_with_frames_removed File "", line 1387, in _gcd_import File "", line 1360, in _find_and_load File "", line 1331, in _find_and_load_unlocked File "", line 935, in load_unlocked File "", line 995, in exec_module File "", line 488, in call_with_frames_removed File "C:\Users\jawwa\AppData\Local\Temp\pip-build-env-kdnmwm9n\overlay\Lib\site-packages\setuptools_init.py", line 16, in import setuptools.version File "C:\Users\jawwa\AppData\Local\Temp\pip-build-env-kdnmwm9n\overlay\Lib\site-packages\setuptools\version.py", line 1, in import pkg_resources File "C:\Users\jawwa\AppData\Local\Temp\pip-build-env-kdnmwm9n\overlay\Lib\site-packages\pkg_resources_init.py", line 2172, in register_finder(pkgutil.ImpImporter, find_on_path) ^^^^^^^^^^^^^^^^^^^ AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'? [end of output]

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

× Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> See above for output.

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

PS C:\Users\jawwa\Downloads\AI Agents> pip show metagpt

WARNING: Package(s) not found: metagpt

What do I do to install it properly?

jawwad-ahmed2809 avatar Jan 21 '25 02:01 jawwad-ahmed2809

You need to first install a Linux OS simulator, such as MinGW or Cygwin, and then install MetaGPT.

iorisa avatar Jan 21 '25 02:01 iorisa

The version of Python should be >=3.9 and <=3.11, I have used 3.12 , faced the same question.

peterxia-chn avatar Feb 03 '25 01:02 peterxia-chn

This issue has no activity in the past 30 days. Please comment on the issue if you have anything to add.

github-actions[bot] avatar Mar 06 '25 00:03 github-actions[bot]

This issue was closed due to 45 days of inactivity. If you feel this issue is still relevant, please reopen the issue to continue the discussion.

github-actions[bot] avatar Mar 20 '25 00:03 github-actions[bot]