earthpy: PIP Installation problem - ModuleNotFoundError: No module named 'numpy'

I tried installing earthpy using pip3 install --upgrade git+https://github.com/earthlab/earthpy.git

And I get the following error `Collecting git+https://github.com/earthlab/earthpy.git Cloning https://github.com/earthlab/earthpy.git to /tmp/pip-req-build-oi4iyxo6 Installing build dependencies … done Getting requirements to build wheel … error Complete output from command /usr/bin/python3 /usr/local/lib/python3.6/dist-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmp0kktck3c: Traceback (most recent call last): File “/usr/local/lib/python3.6/dist-packages/pip/_vendor/pep517/_in_process.py”, line 207, in <module> main() File “/usr/local/lib/python3.6/dist-packages/pip/_vendor/pep517/_in_process.py”, line 197, in main json_out[‘return_val’] = hook(**hook_input[‘kwargs’]) File “/usr/local/lib/python3.6/dist-packages/pip/_vendor/pep517/_in_process.py”, line 54, in get_requires_for_build_wheel return hook(config_settings) File “/tmp/pip-build-env-lny3v0hx/overlay/lib/python3.6/site-packages/setuptools/build_meta.py”, line 115, in get_requires_for_build_wheel return _get_build_requires(config_settings, requirements=[‘wheel’]) File “/tmp/pip-build-env-lny3v0hx/overlay/lib/python3.6/site-packages/setuptools/build_meta.py”, line 101, in _get_build_requires _run_setup() File “/tmp/pip-build-env-lny3v0hx/overlay/lib/python3.6/site-packages/setuptools/build_meta.py”, line 85, in _run_setup exec(compile(code, file, ‘exec’), locals()) File “setup.py”, line 3, in <module> from numpy.distutils.core import setup ModuleNotFoundError: No module named ‘numpy’


Command “/usr/bin/python3 /usr/local/lib/python3.6/dist-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmp0kktck3c” failed with error code 1 in /tmp/pip-req-build-oi4iyxo6`

I did not understand why I got this error and figured it might be an error with my setuptools so I did pip3 install --upgrade setuptools

And the error still persisted, meanwhile numpy is correctly installed and i can import it in any program I run. Could someone kindly help me out with this error?

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 25 (17 by maintainers)

Most upvoted comments

I wrote a short tutorial to run jupyter notebooks on Google Cloud Platform. It corrects most of the errors on the installation. I hope it helps: https://medium.com/@maykef/how-to-create-a-vm-in-gcp-for-geospatial-processing-in-python-3dd00ad5f3e7

Sorry, that wasn’t the right link.

https://github.com/pypa/pip/issues/5240

Nice to hear it worked for you too.