(space2vec_env) (base) root@WorldMap:~/VectorEmbeddingsFromGeoCoordinates# pip install python2
Collecting python2
Downloading python2-1.2.tar.gz (15 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: python2
Building wheel for python2 (pyproject.toml) ... done
Created wheel for python2: filename=python2-1.2-py3-none-any.whl size=14530 sha256=ece30f787ce5c4e509a256b6aa3ba5aa9952e0e56cb38ccf80e257c505745a71
Stored in directory: /root/.cache/pip/wheels/59/cf/2a/e828997c33d5f624f40e2f7326d7e9e7b0fc90c6fe4fb319d4
Successfully built python2
Installing collected packages: python2
Successfully installed python2-1.2
space2vec_env) (base) root@WorldMap:~/VectorEmbeddingsFromGeoCoordinates# pip install -r space2vec/spacegraph/requirements.txt
Collecting numpy==1.16.4 (from -r space2vec/spacegraph/requirements.txt (line 1))
Using cached numpy-1.16.4.zip (5.1 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
╰─> [27 lines of output]
Running from numpy source directory.
<string>:390: UserWarning: Unrecognized setuptools command, proceeding with generating Cython sources and expanding templates
/tmp/pip-install-ype5_9ce/numpy_983a541a12a84eeba208d6775131cc92/numpy/distutils/misc_util.py:476: SyntaxWarning: "is" with 'str' literal. Did you mean "=="?
return is_string(s) and ('*' in s or '?' is s)
Traceback (most recent call last):
File "/root/VectorEmbeddingsFromGeoCoordinates/space2vec_env/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
main()
File "/root/VectorEmbeddingsFromGeoCoordinates/space2vec_env/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main
json_out["return_val"] = hook(**hook_input["kwargs"])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/VectorEmbeddingsFromGeoCoordinates/space2vec_env/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 175, in prepare_metadata_for_build_wheel
return hook(metadata_directory, config_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-hr88cmxj/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 374, in prepare_metadata_for_build_wheel
self.run_setup()
File "/tmp/pip-build-env-hr88cmxj/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 512, in run_setup
super().run_setup(setup_script=setup_script)
File "/tmp/pip-build-env-hr88cmxj/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 317, in run_setup
exec(code, locals())
File "<string>", line 415, in <module>
File "<string>", line 394, in setup_package
File "/tmp/pip-install-ype5_9ce/numpy_983a541a12a84eeba208d6775131cc92/numpy/distutils/__init__.py", line 6, in <module>
from . import ccompiler
File "/tmp/pip-install-ype5_9ce/numpy_983a541a12a84eeba208d6775131cc92/numpy/distutils/ccompiler.py", line 111, in <module>
replace_method(CCompiler, 'find_executables', CCompiler_find_executables)
^^^^^^^^^
NameError: name 'CCompiler' is not defined. Did you mean: 'ccompiler'?
[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.
OS: Ubuntu 24.04