inpoly-python icon indicating copy to clipboard operation
inpoly-python copied to clipboard

Won't install in Windows 10; setup.py and pip/pip3 return errors

Open utacc opened this issue 1 year ago • 1 comments

No installation in Windows 10?

inpoly_.c c1: fatal error C1083: Cannot open source file: 'inpoly\inpoly_.c': No such file or directory error: command 'C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\bin\HostX86\x64\cl.exe' failed with exit code 2

is the end of the error I get using setup.py. pip/pip3 returns: Collecting inpoly Using cached inpoly-0.1.2.tar.gz (185 kB) 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 ╰─> [20 lines of output] Traceback (most recent call last): File "C:\Users\furys\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in main() File "C:\Users\furys\AppData\Local\Programs\Python\Python312\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\furys\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 118, in get_requires_for_build_wheel return hook(config_settings) ^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\furys\AppData\Local\Temp\pip-build-env-_kp6_dwa\overlay\Lib\site-packages\setuptools\build_meta.py", line 325, in get_requires_for_build_wheel return self._get_build_requires(config_settings, requirements=['wheel']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\furys\AppData\Local\Temp\pip-build-env-_kp6_dwa\overlay\Lib\site-packages\setuptools\build_meta.py", line 295, in _get_build_requires self.run_setup() File "C:\Users\furys\AppData\Local\Temp\pip-build-env-_kp6_dwa\overlay\Lib\site-packages\setuptools\build_meta.py", line 487, in run_setup super().run_setup(setup_script=setup_script) File "C:\Users\furys\AppData\Local\Temp\pip-build-env-_kp6_dwa\overlay\Lib\site-packages\setuptools\build_meta.py", line 311, in run_setup exec(code, locals()) File "", line 6, in ModuleNotFoundError: No module named 'numpy' [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.

Except that numpy is, in fact, installed; most recent version, working just fine. PATH variables are set as well.

utacc avatar Jun 19 '24 06:06 utacc

Also had this problem in WSL2 Ubuntu

fynnoconnor avatar Oct 01 '24 15:10 fynnoconnor