Installing numpy with pypy on mac osx -


i'm unable install numpy pypy on mac. have installed pypy using brew , when try execute:

    pip_pypy install numpy 

i error:

   creating build/temp.macosx-10.11-x86_64-2.7/private/var/folders/9p/_t441dx15ddcx5ycrjxrxmyh0000gn creating build/temp.macosx-10.11-x86_64-2.7/private/var/folders/9p/_t441dx15ddcx5ycrjxrxmyh0000gn/t creating build/temp.macosx-10.11-x86_64-2.7/private/var/folders/9p/_t441dx15ddcx5ycrjxrxmyh0000gn/t/pip-build-rbchfe creating build/temp.macosx-10.11-x86_64-2.7/private/var/folders/9p/_t441dx15ddcx5ycrjxrxmyh0000gn/t/pip-build-rbchfe/numpy creating build/temp.macosx-10.11-x86_64-2.7/private/var/folders/9p/_t441dx15ddcx5ycrjxrxmyh0000gn/t/pip-build-rbchfe/numpy/numpy creating build/temp.macosx-10.11-x86_64-2.7/private/var/folders/9p/_t441dx15ddcx5ycrjxrxmyh0000gn/t/pip-build-rbchfe/numpy/numpy/_build_utils creating build/temp.macosx-10.11-x86_64-2.7/private/var/folders/9p/_t441dx15ddcx5ycrjxrxmyh0000gn/t/pip-build-rbchfe/numpy/numpy/_build_utils/src compile options: '-dhave_npy_config_h=1 -d_file_offset_bits=64 -d_largefile_source=1 -d_largefile64_source=1 -dno_atlas_info=3 -dhave_cblas -ibuild/src.macosx-10.11-x86_64-2.7/numpy/core/src/private -inumpy/core/include -ibuild/src.macosx-10.11-x86_64-2.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/cellar/pypy/4.0.1/libexec/include -ibuild/src.macosx-10.11-x86_64-2.7/numpy/core/src/private -ibuild/src.macosx-10.11-x86_64-2.7/numpy/core/src/private -ibuild/src.macosx-10.11-x86_64-2.7/numpy/core/src/private -c' options: '-msse3 -i/system/library/frameworks/veclib.framework/headers' cc: numpy/core/src/multiarray/alloc.c in file included numpy/core/src/multiarray/alloc.c:8: in file included numpy/core/include/numpy/arrayobject.h:4: in file included numpy/core/include/numpy/ndarrayobject.h:27: build/src.macosx-10.11-x86_64-2.7/numpy/core/include/numpy/__multiarray_api.h:28:12: error: visibility not match previous declaration     extern npy_no_export pytypeobject pyarray_type;            ^ numpy/core/include/numpy/ndarraytypes.h:10:31: note: expanded macro 'npy_no_export'         #define npy_no_export npy_visibility_hidden                               ^ build/src.macosx-10.11-x86_64-2.7/numpy/core/include/numpy/_numpyconfig.h:25:46: note: expanded macro 'npy_visibility_hidden' #define npy_visibility_hidden __attribute__((visibility("hidden")))                                              ^ /usr/local/cellar/pypy/4.0.1/libexec/include/pypy_decl.h:611:1: note: previous attribute here pyapi_data(pytypeobject) pyarray_type; ^ /usr/local/cellar/pypy/4.0.1/libexec/include/python.h:15:35: note: expanded macro 'pyapi_data' # define pyapi_data(rtype) extern pyapi_func(rtype)                                   ^ /usr/local/cellar/pypy/4.0.1/libexec/include/python.h:14:43: note: expanded macro 'pyapi_func' # define pyapi_func(rtype) __attribute__((visibility("default"))) rtype                                           ^ numpy/core/src/multiarray/alloc.c:109:30: error: use of undeclared identifier 'pymem_malloc'                             &pyarray_malloc);                              ^ numpy/core/include/numpy/ndarraytypes.h:335:24: note: expanded macro 'pyarray_malloc' #define pyarray_malloc pymem_malloc                        ^ /usr/local/cellar/pypy/4.0.1/libexec/include/pymem.h:8:22: note: expanded macro 'pymem_malloc' #define pymem_malloc pymem_malloc                      ^ 2 errors generated. in file included numpy/core/src/multiarray/alloc.c:8: in file included numpy/core/include/numpy/arrayobject.h:4: in file included numpy/core/include/numpy/ndarrayobject.h:27: build/src.macosx-10.11-x86_64-2.7/numpy/core/include/numpy/__multiarray_api.h:28:12: error: visibility not match previous declaration     extern npy_no_export pytypeobject pyarray_type;            ^ numpy/core/include/numpy/ndarraytypes.h:10:31: note: expanded macro 'npy_no_export'         #define npy_no_export npy_visibility_hidden                               ^ build/src.macosx-10.11-x86_64-2.7/numpy/core/include/numpy/_numpyconfig.h:25:46: note: expanded macro 'npy_visibility_hidden' #define npy_visibility_hidden __attribute__((visibility("hidden")))                                              ^ /usr/local/cellar/pypy/4.0.1/libexec/include/pypy_decl.h:611:1: note: previous attribute here pyapi_data(pytypeobject) pyarray_type; ^ /usr/local/cellar/pypy/4.0.1/libexec/include/python.h:15:35: note: expanded macro 'pyapi_data' # define pyapi_data(rtype) extern pyapi_func(rtype)                                   ^ /usr/local/cellar/pypy/4.0.1/libexec/include/python.h:14:43: note: expanded macro 'pyapi_func' # define pyapi_func(rtype) __attribute__((visibility("default"))) rtype                                           ^ numpy/core/src/multiarray/alloc.c:109:30: error: use of undeclared identifier 'pymem_malloc'                             &pyarray_malloc);                              ^ numpy/core/include/numpy/ndarraytypes.h:335:24: note: expanded macro 'pyarray_malloc' #define pyarray_malloc pymem_malloc                        ^ /usr/local/cellar/pypy/4.0.1/libexec/include/pymem.h:8:22: note: expanded macro 'pymem_malloc' #define pymem_malloc pymem_malloc                      ^ 2 errors generated. error: command "cc -arch x86_64 -o2 -fpic -wimplicit -o2 -fpic -wimplicit -o2 -fpic -wimplicit -dhave_npy_config_h=1 -d_file_offset_bits=64 -d_largefile_source=1 -d_largefile64_source=1 -dno_atlas_info=3 -dhave_cblas -ibuild/src.macosx-10.11-x86_64-2.7/numpy/core/src/private -inumpy/core/include -ibuild/src.macosx-10.11-x86_64-2.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/cellar/pypy/4.0.1/libexec/include -ibuild/src.macosx-10.11-x86_64-2.7/numpy/core/src/private -ibuild/src.macosx-10.11-x86_64-2.7/numpy/core/src/private -ibuild/src.macosx-10.11-x86_64-2.7/numpy/core/src/private -c numpy/core/src/multiarray/alloc.c -o build/temp.macosx-10.11-x86_64-2.7/numpy/core/src/multiarray/alloc.o -msse3 -i/system/library/frameworks/veclib.framework/headers" failed exit status 1  ---------------------------------------- command "/usr/local/cellar/pypy/4.0.1/bin/pypy -u -c "import setuptools, tokenize;__file__='/private/var/folders/9p/_t441dx15ddcx5ycrjxrxmyh0000gn/t/pip-build-rbchfe/numpy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/9p/_t441dx15ddcx5ycrjxrxmyh0000gn/t/pip-fcqria-record/install-record.txt --single-version-externally-managed --compile" failed error code 1 in /private/var/folders/9p/_t441dx15ddcx5ycrjxrxmyh0000gn/t/pip-build-rbchfe/numpy 

and when trying follow instructions http://pypy.org/download.html more confusing error pypy version 4.1:

cloning https://bitbucket.org/pypy/numpy.git /var/folders/9p/_t441dx15ddcx5ycrjxrxmyh0000gn/t/pip-59hkza-build complete output command python setup.py egg_info: traceback (most recent call last):   file "<string>", line 1, in <module>   file "/var/folders/9p/_t441dx15ddcx5ycrjxrxmyh0000gn/t/pip-59hkza-build/setup.py", line 33, in <module>     ('.'.join(map(str, min_pypy_version)),)) runtimeerror: pypy version >= 4.1 required  ---------------------------------------- command "python setup.py egg_info" failed error code 1 in /var/folders/9p/_t441dx15ddcx5ycrjxrxmyh0000gn/t/pip-59hkza-build 

dose know doing wrong , how can fix it?

numpy being ported pypy , experimental version available now. according official site, command install version of numpy pypy is:

pypy -m pip install git+https://bitbucket.org/pypy/numpy.git

http://pypy.org/download.html#installing-numpy

the command tried try install normal numpy pypi not ready pypy.

(edit)

i followed instructions given @ https://bitbucket.org/pypy/numpy , install numpy 1.9.0 pypy on linux mint 17.

basically create new env pypy-numpy

virtualenv -p /path/to/pypy/bin/pypy /directory/to/try/pypy-numpy

/path/to/pypy/bin/pypy here path pypy 4.0.1. /directory/to/try/pypy-numpy you. created in home/pypy-numpy

then cloned numpypy source by

git clone https://bitbucket.org/pypy/numpy.git

then moved clone directory 'numpy' , did

git checkout pypy-4.0.1

this fetched version of numpypy need pypy 4.0.1

now can

~/pypy-numpy/bin/pypy setup.py install

which worked without problems.

hope helps on mac well.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -