oTree Forum >

trying to install otree3 on ubuntu 22.04

#1 by ErikdeKwaadsteniet

Hi all,

I'm trying to install an old version of otree (otree 3.3) on the linux server in our lab, to run an old study of one of our researchers (in a separate virtual environment). However, when I use the command "pip3 install otree==3.3" it says: this verson of oTree is not compatible with Python 3.9. This also happens when I activate an older version of python (3.6 or 3.7). How can I solve this?

Kind regards,

Erik

#2 by Chris_oTree

Can you paste the output of when you use Python 3.7?

#3 by BonnEconLab

I have faced the same problem on my Mac when revisiting an old project. I managed to get the old code running in a virtual environment, just like you described.

I am not sure what you mean by “activating” and older Python version.

Are you sure that you created the virtual environment using the older Python version? That is, did you use, say, python3.7 -m venv <path_to_venv>?

#4 by ErikdeKwaadsteniet

No I didn't use python 3.7 to create the virtual environment. I'll try that first.

#5 by ErikdeKwaadsteniet

I now created a venv using python 3.8, and was able to install otree 3.3 in that new venv. Due to my limited knowledge of virtual environments, I didn't know that I had to create the venv using that older python version. But now it seems to work. Thanks for the help!

Write a reply

Set forum username