Member Site › Forums › PyRosetta › PyRosetta – Build/Install › Downgrade IPython to Python 3.7 for use with PyRosetta
- This topic has 3 replies, 3 voices, and was last updated 4 years, 6 months ago by Anonymous.
-
AuthorPosts
-
-
May 30, 2020 at 9:50 am #3444Anonymous
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!
-
May 30, 2020 at 7:15 pm #15317Anonymous
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
-
June 9, 2020 at 8:59 am #15332Anonymous
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.7Thomas
-
June 11, 2020 at 1:59 pm #15334Anonymous
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
-
-
AuthorPosts
- You must be logged in to reply to this topic.