-
Notifications
You must be signed in to change notification settings - Fork 160
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 Installation problem - ModuleNotFoundError: No module named 'numpy' <resolved> #206
Comments
Hi there!
Can you tell us
1. What operating system you are running
2. What version of python are you running?
3. What happens when you try pip instead of pip3?
It’s interesting it’s saying it can’t find numpy on the install. I’m not able to recreate this error locally right now but the above information will help us troubleshoot.
I actually also see something that could be causing this. Please also tell us what version of NUMPY you have installed.
|
I'm running I still caught the same error when I used pip |
go back to pip 9: pip install --upgrade pip==9.0.3 And reinstall using pip3 install --upgrade git+https://github.com/earthlab/earthpy.git |
hey @maykef THANK YOU. we've been running into this issue as well and i've tried many things without it working. Hey @jlpalomino @nkorinek @katysill Try to do this
this actually worked for me well. |
Nice to hear it worked for you too. |
@maykef i'm just curious. do you happen to know what the issue is with certain versions of pip that impact an install? |
Sorry, that wasn't the right link. |
I wrote a short tutorial to run jupyter notebooks on Google Cloud Platform. |
After running what you suggested this is the error, I run into, any reason why this is happening? `Collecting git+https://github.com/earthlab/earthpy.git During handling of the above exception, another exception occurred: Traceback (most recent call last): Downgrading pip does not work from my end |
Going back to pip 9 didn't work but pip 10 did, after going through @maykef tutorial earthpy is now correctly installed. Thanks soo much |
I can confirm I have this issue too. I am running Ubuntu 18.04.2 LTS (Bionic Beaver), python version 3.6.7, conda version 4.6.3, in the earthpy-dev conda environment. Steps to reproduce the issue git clone [email protected]:earthlab/earthpy.git
cd earthpy/
conda env create -f environment.yml
source activate earthpy-dev
pip install -e . Which gives the following error:
|
@mbjoseph what version of pip do you have? |
@lwasser looks like pip 19.0.2
|
and i have
yup -- so if you DOWNGRADE to 0.9.3 UPDATE: so @mbjoseph version 18.0 also works for me. But version 19.0 of pip breaks the earthpy install. Curious if |
All... we have implemented a change to our |
hey @lwasser, I just tried to install, but received the error below. I am using pip 9.0.3 and my environment is activated. I am on a windows machine $ pip install --upgrade git+https://github.com/earthlab/earthpy.git
Command "python setup.py egg_info" failed with error code 1 in C:\Users\katy\AppData\Local\Temp\pip-build-dt8kcov1\rasterio\ |
@katysill oops i see it is activated... hmmmm @mbjoseph NOTE: this is the same issue i had on my windows VM. interestingly this is an exception from rasterio ... https://github.com/mapbox/rasterio/blob/9f128bc0da3fdaf04b7f23b94eabf1d7c02fe99c/setup.py#L114 |
what version of rasterio do you have @katysill ? |
@lwasser - I have rasterio 1.0.15 |
did you update your envt? i have 1.0.18 on my windows VM. |
I just ran an update on my earth-analytics environment, and the earthpy install worked perfectly! |
oh good. @katysill i noticed some issues with the older version of rasterio... i'm glad that worked for you. we will have many install kinks to work out!! |
ok i am going to close this issue given this pr |
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
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
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?
The text was updated successfully, but these errors were encountered: