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 fails #20

Open
Betucant opened this issue Nov 28, 2024 · 0 comments
Open

pip install fails #20

Betucant opened this issue Nov 28, 2024 · 0 comments

Comments

@Betucant
Copy link

When running the pip install command I get the following output. Is this a known issue?

pip install -r requirements.txt
Defaulting to user installation because normal site-packages is not writeable
Collecting numpy==1.15.1 (from -r requirements.txt (line 1))
Downloading numpy-1.15.1.zip (4.5 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.5/4.5 MB 24.5 MB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [30 lines of output]
Running from numpy source directory.
:378: UserWarning: Unrecognized setuptools command, proceeding with generating Cython sources and expanding templates
C:\Users\David Davison\AppData\Local\Temp\pip-install-0dia48pf\numpy_bc3c0bfae7c74b468a1b4073a41bace4\numpy\distutils\misc_util.py:474: SyntaxWarning: "is" with 'str' literal. Did you mean "=="?
return is_string(s) and ('*' in s or '?' is s)
Traceback (most recent call last):
File "C:\Users\David Davison\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
main()
File "C:\Users\David Davison\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\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\David Davison\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 149, in prepare_metadata_for_build_wheel
return hook(metadata_directory, config_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\David Davison\AppData\Local\Temp\pip-build-env-1bh843yr\overlay\Lib\site-packages\setuptools\build_meta.py", line 377, in prepare_metadata_for_build_wheel
self.run_setup()
File "C:\Users\David Davison\AppData\Local\Temp\pip-build-env-1bh843yr\overlay\Lib\site-packages\setuptools\build_meta.py", line 522, in run_setup
super().run_setup(setup_script=setup_script)
File "C:\Users\David Davison\AppData\Local\Temp\pip-build-env-1bh843yr\overlay\Lib\site-packages\setuptools\build_meta.py", line 320, in run_setup
exec(code, locals())
File "", line 403, in
File "", line 382, in setup_package
File "C:\Users\David Davison\AppData\Local\Temp\pip-install-0dia48pf\numpy_bc3c0bfae7c74b468a1b4073a41bace4\numpy\distutils_init_.py", line 8, in
from . import ccompiler
File "C:\Users\David Davison\AppData\Local\Temp\pip-install-0dia48pf\numpy_bc3c0bfae7c74b468a1b4073a41bace4\numpy\distutils\ccompiler.py", line 17, in
from numpy.distutils import log
File "C:\Users\David Davison\AppData\Local\Temp\pip-install-0dia48pf\numpy_bc3c0bfae7c74b468a1b4073a41bace4\numpy\distutils\log.py", line 13, in
from numpy.distutils.misc_util import (red_text, default_text, cyan_text,
File "C:\Users\David Davison\AppData\Local\Temp\pip-install-0dia48pf\numpy_bc3c0bfae7c74b468a1b4073a41bace4\numpy\distutils\misc_util.py", line 16, in
from distutils.msvccompiler import get_build_architecture
ModuleNotFoundError: No module named 'distutils.msvccompiler'
ModuleNotFoundError: No module named 'distutils.msvccompiler'
ModuleNotFoundError: No module named 'distutils.msvccompiler'
ModuleNotFoundError: No module named 'distutils.msvccompiler'
ModuleNotFoundError: No module named 'distutils.msvccompiler'
[end of output]

  ModuleNotFoundError: No module named 'distutils.msvccompiler'
  ModuleNotFoundError: No module named 'distutils.msvccompiler'
  ModuleNotFoundError: No module named 'distutils.msvccompiler'
  [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.

David Davison@DESKTOP-GQTFJVV MINGW64 ~/Documents/source/photomosaic (master)
$ pip install -r requirements.txt
Defaulting to user installation because normal site-packages is not writeable
Collecting numpy==1.15.1 (from -r requirements.txt (line 1))
Using cached numpy-1.15.1.zip (4.5 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [30 lines of output]
Running from numpy source directory.
:378: UserWarning: Unrecognized setuptools command, proceeding with generating Cython sources and expanding templates
C:\Users\David Davison\AppData\Local\Temp\pip-install-pjh9qa71\numpy_8ee54c85a01d46aab33aba5f98ea2131\numpy\distutils\misc_util.py:474: SyntaxWarning: "is" with 'str' literal. Did you mean "=="?
return is_string(s) and ('*' in s or '?' is s)
Traceback (most recent call last):
File "C:\Users\David Davison\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
main()
File "C:\Users\David Davison\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\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\David Davison\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 149, in prepare_metadata_for_build_wheel
return hook(metadata_directory, config_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\David Davison\AppData\Local\Temp\pip-build-env-alaroj4q\overlay\Lib\site-packages\setuptools\build_meta.py", line 377, in prepare_metadata_for_build_wheel
self.run_setup()
File "C:\Users\David Davison\AppData\Local\Temp\pip-build-env-alaroj4q\overlay\Lib\site-packages\setuptools\build_meta.py", line 522, in run_setup
super().run_setup(setup_script=setup_script)
File "C:\Users\David Davison\AppData\Local\Temp\pip-build-env-alaroj4q\overlay\Lib\site-packages\setuptools\build_meta.py", line 320, in run_setup
exec(code, locals())
File "", line 403, in
File "", line 382, in setup_package
File "C:\Users\David Davison\AppData\Local\Temp\pip-install-pjh9qa71\numpy_8ee54c85a01d46aab33aba5f98ea2131\numpy\distutils_init_.py", line 8, in
from . import ccompiler
File "C:\Users\David Davison\AppData\Local\Temp\pip-install-pjh9qa71\numpy_8ee54c85a01d46aab33aba5f98ea2131\numpy\distutils\ccompiler.py", line 17, in
from numpy.distutils import log
File "C:\Users\David Davison\AppData\Local\Temp\pip-install-pjh9qa71\numpy_8ee54c85a01d46aab33aba5f98ea2131\numpy\distutils\log.py", line 13, in
from numpy.distutils.misc_util import (red_text, default_text, cyan_text,
File "C:\Users\David Davison\AppData\Local\Temp\pip-install-pjh9qa71\numpy_8ee54c85a01d46aab33aba5f98ea2131\numpy\distutils\misc_util.py", line 16, in
from distutils.msvccompiler import get_build_architecture
ModuleNotFoundError: No module named 'distutils.msvccompiler'
[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.

The error implies one of your dependencies may no longer be available

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

1 participant