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

Numpy Software 1.11.1 Install Error with python3 --version Python 3.13.0, Help please. #201

Open
marisolcontreras1 opened this issue Nov 19, 2024 · 0 comments

Comments

@marisolcontreras1
Copy link

marisolcontreras1 commented Nov 19, 2024

Hi MetaXcan team, may I please receive support in how to properly install Numpy 1.11.1?
This is my workflow and error. Thank you

python3 -m pip install numpy==1.11.1
Collecting numpy==1.11.1
Downloading numpy-1.11.1.zip (4.7 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.7/4.7 MB 5.6 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
╰─> [36 lines of output]
Running from numpy source directory.
:327: UserWarning: Unrecognized setuptools command, proceeding with generating Cython sources and expanding templates
/scratch/username/pip-install-nrel6je5/numpy_c10d009fc35947f08358c8cd64eabc86/numpy/distutils/misc_util.py:1881: SyntaxWarning: invalid escape sequence '_'
"""Try to get version string of a package.
/scratch/username/pip-install-nrel6je5/numpy_c10d009fc35947f08358c8cd64eabc86/numpy/distutils/misc_util.py:452: SyntaxWarning: "is" with 'str' literal. Did you mean "=="?
return is_string(s) and ('*' in s or '?' is s)
Traceback (most recent call last):
File "/wynton/protected/username/.conda/envs/my-env/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in
main()
~~~~^^
File "/wynton/protected/username/.conda/envs/my-env/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/wynton/protected/username/.conda/envs/my-env/lib/python3.13/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 "/scratch/username/pip-build-env-phqtb0mk/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 377, in prepare_metadata_for_build_wheel
self.run_setup()
~~~~~~~~~~~~~~^^
File "/scratch/username/pip-build-env-phqtb0mk/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 522, in run_setup
super().run_setup(setup_script=setup_script)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/scratch/username/pip-build-env-phqtb0mk/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 320, in run_setup
exec(code, locals())
~~~~^^^^^^^^^^^^^^^^
File "", line 386, in
File "", line 365, in setup_package
File "/scratch/username/pip-install-nrel6je5/numpy_c10d009fc35947f08358c8cd64eabc86/numpy/distutils/init.py", line 8, in
from . import ccompiler
File "/scratch/username/pip-install-nrel6je5/numpy_c10d009fc35947f08358c8cd64eabc86/numpy/distutils/ccompiler.py", line 15, in
from numpy.distutils import log
File "/scratch/username/pip-install-nrel6je5/numpy_c10d009fc35947f08358c8cd64eabc86/numpy/distutils/log.py", line 13, in
from numpy.distutils.misc_util import (red_text, default_text, cyan_text,
green_text, is_sequence, is_string)
File "/scratch/username/pip-install-nrel6je5/numpy_c10d009fc35947f08358c8cd64eabc86/numpy/distutils/misc_util.py", line 6, in
import imp
ModuleNotFoundError: No module named 'imp'
[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.
(my-env) [username@pdev1 software]$ python3 --version
Python 3.13.0
(my-env) [username@pdev1 software]$ python3 -m pip install numpy==1.11.1
Collecting numpy==1.11.1
Using cached numpy-1.11.1.zip (4.7 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
╰─> [36 lines of output]
Running from numpy source directory.
:327: UserWarning: Unrecognized setuptools command, proceeding with generating Cython sources and expanding templates
/scratch/username/pip-install-b557z_fm/numpy_68655b89f21a4e20b7e85569ad6c8d12/numpy/distutils/misc_util.py:1881: SyntaxWarning: invalid escape sequence '_'
"""Try to get version string of a package.
/scratch/pip-install-b557z_fm/numpy_68655b89f21a4e20b7e85569ad6c8d12/numpy/distutils/misc_util.py:452: SyntaxWarning: "is" with 'str' literal. Did you mean "=="?
return is_string(s) and ('*' in s or '?' is s)
Traceback (most recent call last):
File "/wynton/protected/.conda/envs/my-env/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in
main()
~~~~^^
File "/wynton/protected/.conda/envs/my-env/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/wynton/protected/username/.conda/envs/my-env/lib/python3.13/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 "/scratch/username/pip-build-env-22x7m9sp/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 377, in prepare_metadata_for_build_wheel
self.run_setup()
~~~~~~~~~~~~~~^^
File "/scratch/username/pip-build-env-22x7m9sp/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 522, in run_setup
super().run_setup(setup_script=setup_script)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/scratch/username/pip-build-env-22x7m9sp/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 320, in run_setup
exec(code, locals())
~~~~^^^^^^^^^^^^^^^^
File "", line 386, in
File "", line 365, in setup_package
File "/scratch/username/pip-install-b557z_fm/numpy_68655b89f21a4e20b7e85569ad6c8d12/numpy/distutils/init.py", line 8, in
from . import ccompiler
File "/scratch/username/pip-install-b557z_fm/numpy_68655b89f21a4e20b7e85569ad6c8d12/numpy/distutils/ccompiler.py", line 15, in
from numpy.distutils import log
File "/scratch/username/pip-install-b557z_fm/numpy_68655b89f21a4e20b7e85569ad6c8d12/numpy/distutils/log.py", line 13, in
from numpy.distutils.misc_util import (red_text, default_text, cyan_text,
green_text, is_sequence, is_string)
File "/scratch/username/pip-install-b557z_fm/numpy_68655b89f21a4e20b7e85569ad6c8d12/numpy/distutils/misc_util.py", line 6, in
import imp
ModuleNotFoundError: No module named 'imp'
[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.

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