omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    pandas needs newer numpy

    Pythonista
    2
    5
    4662
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • froody
      froody last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • froody
        froody last edited by

        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]$ ```
        1 Reply Last reply Reply Quote 0
        • JonB
          JonB last edited by

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

          1 Reply Last reply Reply Quote 0
          • froody
            froody last edited by

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

            1 Reply Last reply Reply Quote 0
            • JonB
              JonB last edited by

              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.

              1 Reply Last reply Reply Quote 1
              • First post
                Last post
              Powered by NodeBB Forums | Contributors