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

Pip install error #1674

Open
jawwad-ahmed2809 opened this issue Jan 21, 2025 · 1 comment
Open

Pip install error #1674

jawwad-ahmed2809 opened this issue Jan 21, 2025 · 1 comment

Comments

@jawwad-ahmed2809
Copy link

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?

@iorisa
Copy link
Collaborator

iorisa commented Jan 21, 2025

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

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