You are here

Downgrade IPython to Python 3.7 for use with PyRosetta

4 posts / 0 new
Last post
Downgrade IPython to Python 3.7 for use with PyRosetta

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!

Post Situation: 
Sat, 2020-05-30 02:50


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

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

Sat, 2020-05-30 12:15

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


Tue, 2020-06-09 01:59

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


Thu, 2020-06-11 06:59