Closed mattjwarren closed 2 years ago
from the PPA page:
Python modules in the official Ubuntu repositories are packaged to work with the Python interpreters from the official repositories. Accordingly, they generally won't work with the Python interpreters from this PPA. As an exception, pure-Python modules for Python 3 will work, but any compiled extension modules won't.
This may be a red herring, but some googling suggested I try
root# python3.7 -m pip install pycairo Requirement already satisfied: pycairo in /usr/lib/python3/dist-packages (1.20.1) root# python3.7 -m pip install PyGObject Requirement already satisfied: PyGObject in /usr/lib/python3/dist-packages (3.42.0) Requirement already satisfied: pycairo>=1.16.0 in /usr/lib/python3/dist-packages (from PyGObject) (1.20.1)
This appears that even though I am calling python3.7 -m pip install .... It is being satisfied with packages installed in dist-packages, where I understood that should only be valid for the system python python3.10 ?
so python3.7 import gi is attempting to import compiled c modules from the system python installation in dist-packages, which would likely fail as they are from a python3.10 compilation?
I am relying on python3.7 because the project requires tensorflow 1.15 which is not supported in python above 3.7
Ahh I see your above comment, give me a moment to read through it
I thought to install my requirements for python3.7, I must use python3.7 -m pip
it appears I am thoroughly confused by managing extra python versions other than the system python. I shall continue reading some more!
description
python3.7 installed from deadsnakes PPA into Ubuntu22.04 with sudo apt install python3.7
After installing python3.7 for ubuntu22.04 I have the problem;
root@ubuntu-1:/# python3.7 Python 3.7.13 (default, Apr 24 2022, 01:06:43) [GCC 11.2.0] on linux Type "help", "copyright", "credits" or "license" for more information.
Using the system python, 3.10 this import is succesful.
os information
lsb_release -a
uname -a