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.


    mypy does not install

    Pythonista
    4
    4
    4166
    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.
    • upwart
      upwart last edited by

      I am trying to install mypy with pip install mypy under Stash.
      But I get the error message:
      ERROR: You need Python 3.4 or later to use mypy.
      although I am on Python 3.5 (not beta).
      Is there a way to install mypy?

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

        Stash runs under Python 2.7 even in Pythonista 3, so that is the Python version that the setup.py will see. Still a bit odd, I thought mypy works on Python 2.7 as well.

        In any case it's probably easier to install it by hand: get the tar.gz download link from https://pypi.python.org/pypi/mypy, wget it using Stash, extract it with tar -xzf <filename>.tar.gz. Then look into the extracted folder and move the mypy folder into site-packages.

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

          I decide to try mypy today. It seems that pip install mypy does now install mypy but ends up having problems accessing typed-ast package. It appears that typed-ast includes c code which does not run on Pythonista.

          Back when this thread started a year ago mypy didn’t appear to use typed-ast so that wasn’t an issue. I tried installing older versions of mypy but had other issues with them.

          Has anyone got mypy to work on Pythonista?

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

            Hiya I will say you can run stash under python 3.6 or what ever it is . just press go on the stash script it will show errors but I have found it to generally work if not manual install sorry dude and if there’s some c bits then it won’t work

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