Downgrade IPython to Python 3.7 for use with PyRosetta

Member Site Forums PyRosetta PyRosetta – Build/Install Downgrade IPython to Python 3.7 for use with PyRosetta

Viewing 3 reply threads
  • Author
    Posts
    • #3444
      Anonymous

        Hi everyone,

        I am using PyRosetta for Python 3.7 on a 64-bit Dell laptop with Microsoft Windows 10.0.18363 with the Windows Subsystem for Linux(WSL) and the use of Ubuntu 20.04 LTS.

        The problem is that if I install IPython with sudo apt-get install python3-ipython, I get Python 3.8 automatically (it says Python 3.8.2 (default, Apr 27 2020, 15:53:34) if I start ipython3 via the Ubuntu terminal), but PyRosetta only works with python3.7 (if I try it with my IPython it says ” Python version mismatch: module was compiled for Python 3.7, but the interpreter version is incompatible: 3.8.2 (default, Apr 27 2020, 15:53:34)”). I can operate PyRosetta by installing Python3.7 directly, but then I cannot use it efficiently because most importantly the magic command “run” is missing, so it is not as easy to run python scripts. Does anybody have advice how to “downgrade” my IPython to Python3.7 or how I can install IPython with Python3.7 so I can run PyRosetta properly with scripts and not only through the terminal? Thanks a lot in advance!

      • #15317
        Anonymous

          Hello,

          I don’t use windows — but if it’s subsystem is like native linux you should be able to use conda:

          https://docs.conda.io/en/latest/miniconda.html

          after installing conda you should be able to create a new environment via:


          conda create --name pyrosetta python=3.7

          from there the steps should be similar for your typical pyrosetta install

        • #15332
          Anonymous

            I do not use ipython, but may be just installing a python3.7 interpreter will help:


            sudo add-apt-repository ppa:deadsnakes/ppa
            sudo apt
            -get update
            sudo apt
            -get install python3.7

            Thomas

          • #15334
            Anonymous

              Actually, if you install python3.7 as mentioned above and also have the Ubuntu ipython3 installed,  you can run ipython3 with python3.7 and Pyrosetta using:

              python3.7 /usr/bin/ipython3

              Thomas

          Viewing 3 reply threads
          • You must be logged in to reply to this topic.