Python >3.8 and open-interpreter

Hi everyone,
my target is to start using open-interpreter that works on Python3.10 onwards.
I'm on the last Zorin version, so Python is 3.8.
I already successfully installed Python 3.11.5, but if I set it up as default, Zorin starts having some problems, like the terminal not opening anymore.
I had to switch to a different TTY to restore the 3.8 as default.

If I try to simply install open-interpreter with

pip install open-interpreter

it replies with

ERROR: Could not find a version that satisfies the requirement open-interpreter (from versions: none)
ERROR: No matching distribution found for open-interpreter

I know that the following command will install interpreter

pip install open-interpreter --ignore-requires-python

but...

/usr/lib/python3/dist-packages/requests/init.py:89: RequestsDependencyWarning: urllib3 (1.26.16) or chardet (3.0.4) doesn't match a supported version!
warnings.warn("urllib3 ({}) or chardet ({}) doesn't match a supported "
Traceback (most recent call last):
File "/home/gio/.local/bin/interpreter", line 5, in
from interpreter import cli
File "/home/gio/.local/lib/python3.8/site-packages/interpreter/init.py", line 1, in
from .core.core import Interpreter
File "/home/gio/.local/lib/python3.8/site-packages/interpreter/core/core.py", line 10, in
from ..terminal_interface.terminal_interface import terminal_interface
File "/home/gio/.local/lib/python3.8/site-packages/interpreter/terminal_interface/terminal_interface.py", line 11, in
from ..utils.scan_code import scan_code
File "/home/gio/.local/lib/python3.8/site-packages/interpreter/utils/scan_code.py", line 4, in
from yaspin.spinners import Spinners
File "/home/gio/.local/lib/python3.8/site-packages/yaspin/spinners.py", line 23, in
def _hook(dct: dict[str, Any]) -> Any:
TypeError: 'type' object is not subscriptable

So, is there a way to keep Python3.8 as default but run interpreter with the 3.11?

Hope you can help
Thanks

Do you know about environments?

I'm not sure you can have a higher version of Python installed in a virtual environment than what you currently have in your system, can you?

My recommendation for this and to keep things cleaner and portable would be to use Docker.

1 Like

As zenzen mentions. I would be wary of adding a higher version of Python than default. We often see poor outcomes of users installing different versions of Python then seeking help on the forum.

1 Like