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

cannot install numpy==1.14 specifically #12026

Closed
Karrenbelt opened this issue Sep 24, 2018 · 4 comments
Closed

cannot install numpy==1.14 specifically #12026

Karrenbelt opened this issue Sep 24, 2018 · 4 comments

Comments

@Karrenbelt
Copy link

@Karrenbelt Karrenbelt commented Sep 24, 2018

Reproducing code example:

pip3.7 install numpy==1.14

on the contrary, installing the current latest version, 1.15.2 works fine

pip3.7 install numpy==1.15.2 

I need numpy==1.14 as a dependency to pip install abcpy

Error message:

15 errors generated.
error: Command "clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -Inumpy/core/include -Ibuild/src.macosx-10.13-x86_64-3.7/numpy/core/include/numpy -Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/include/python3.7m -Ibuild/src.macosx-10.13-x86_64-3.7/numpy/core/src/private -Ibuild/src.macosx-10.13-x86_64-3.7/numpy/core/src/npymath -Ibuild/src.macosx-10.13-x86_64-3.7/numpy/core/src/private -Ibuild/src.macosx-10.13-x86_64-3.7/numpy/core/src/npymath -Ibuild/src.macosx-10.13-x86_64-3.7/numpy/core/src/private -Ibuild/src.macosx-10.13-x86_64-3.7/numpy/core/src/npymath -c numpy/random/mtrand/mtrand.c -o build/temp.macosx-10.13-x86_64-3.7/numpy/random/mtrand/mtrand.o -MMD -MF build/temp.macosx-10.13-x86_64-3.7/numpy/random/mtrand/mtrand.o.d" failed with exit status 1

----------------------------------------

Command "/usr/local/opt/python/bin/python3.7 -u -c "import setuptools, tokenize;file='/private/var/folders/tq/yhb6dsx952l1wcmx5qnxp0940000gn/T/pip-install-z318x9au/numpy/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /private/var/folders/tq/yhb6dsx952l1wcmx5qnxp0940000gn/T/pip-record-zpcqluaj/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/tq/yhb6dsx952l1wcmx5qnxp0940000gn/T/pip-install-z318x9au/numpy/

Numpy/Python version information:

python: 3.7.0
issue with numpy version: 1.14

@charris

This comment has been minimized.

Copy link
Member

@charris charris commented Sep 24, 2018

Why is it compiling?

@Karrenbelt

This comment has been minimized.

Copy link
Author

@Karrenbelt Karrenbelt commented Sep 24, 2018

The output is verbally extensive, over 4000 lines, I just posted the last bit.

First bit:

Collecting numpy==1.14
  Using cached https://files.pythonhosted.org/packages/ee/66/7c2690141c520db08b6a6f852fa768f421b0b50683b7bbcd88ef51f33170/numpy-1.14.0.zip
Installing collected packages: numpy
  Running setup.py install for numpy ... error

first error:
_configtest.c:1:10: fatal error: 'endian.h' file not found

I don't know what else to tell you

@charris

This comment has been minimized.

Copy link
Member

@charris charris commented Sep 24, 2018

pip should be installing a wheel, not compiling, but apparently that is what happens if you do not supply the micro version. Try pip3.7 install numpy==1.14.6

@rgommers

This comment has been minimized.

Copy link
Member

@rgommers rgommers commented Sep 24, 2018

1.14 means 1.14.0 to pip. Always use a full 3-digit version number. 1.14.0 doesn't have Python 3.7 wheels, 1.14.6 does. Closing, you'll get a wheel with pip3.7 install numpy==1.14.6

@rgommers rgommers closed this Sep 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.