Forum Archive

pandas needs newer numpy

froody

I've tried to use pandas but the preinstalled version of numpy is 1.8, and pandas requires >= 1.9. I tried 'pip install numpy' from stash but that didn't work.

froody

```
StaSh v0.7.0 on python 3.6.1
Warning: you are running StaSh in python3. Some commands may not work correctly in python3.
Please help us improving StaSh by reporting bugs on github.
Tip: You can redirect output to Pythonista console, e.g. ls > &3
[~/Documents]$ pip uninstall numpy
usage: pip.py [-h] [--verbose] sub-command ...
pip.py: error: argument sub-command: invalid choice: 'uninstall' (choose from 'list', 'install', 'download', 'search', 'versions', 'remove', 'update')
[~/Documents]$ pip remove numpy
Package removed.
[~/Documents]$ pip install numpy
Querying PyPI ...
Downloading package ...
Opening: https://files.pythonhosted.org/packages/2d/80/1809de155bad674b494248bcfca0e49eb4c5d8bee58f26fe7a0dd45029e2/numpy-1.15.4.zip

Save as: /private/var/mobile/Containers/Data/Application/7D439C85-0ADD-4142-8E2B-28BA9EF0EA94/tmp//numpy-1.15.4.zip (4473522 bytes)
4473522 [100.00%]
Extracting archive file ...
Running setup file ...
Running from numpy source directory.

Note: if you need reliable uninstall behavior, then install
with pip instead of using setup.py install:

  • pip install . (from a git repo or downloaded source
    release)
  • pip install numpy (last NumPy release on PyPi)

TypeError('can only concatenate list (not "OmniClass") to list',)
Failed to run setup.py
Fall back to directory guessing ...
Package installed: numpy
[~/Documents]$ cd s
score.py score.py,cover score_1.py site-packages-2/ site-packages-3/ site-packages/ src.txt stash_extensions/
[~/Documents]$ cd site-packages-3
[site-packages-3]$ ls
networkx Readme.md numpy scipy coverage pgmpy pandas dateutil
[site-packages-3]$ cd numpy
[numpy]$ pip install .
Querying PyPI ...
Error: Failed to fetch package release urls
[numpy]$ python3 setup.py install
This is the wrong setup.py file to run
[numpy]$ ls
distutils conftest.py compat core version.py linalg ma add_newdocs.py _globals.py tests init.py dual.py _distributor_init.py f2py testing setup.py ctypeslib.py _import_tools.py matlib.py lib fft doc random matrixlib polynomial _build_utils
[numpy]$ python3 setup.py
This is the wrong setup.py file to run
[numpy]$ ```

JonB

Luckily, pandas can not be run in pythonista anyway, since it is written in c/Fortran.

froody

Numpy is written in C, but it's available, why is that different?

JonB

Thanks to Apple, iOS does not allow dynamic libraries. So, you cannit install c modules after the fact. numpy was compiled and statically linked into pythonista. pandas was not.

Your next question might be,
when will pandas be included in pythonista.