skip to Main Content

I am trying to make an app with android studio, i imported chaquopy and python runs it.. (app is ok fine but when start python script cv2 is missing)
in the python program I use opencv so I have to import the library the fact is that if I add:

     python {      
         pip {   
              install "opencv-python"  
            }
        }

in the defaultconfig and try sync now:

*** 
Process 'command 'python3.8'' finished with non-zero exit value 1
***
***
Execution failed for task ':app:generateDebugPythonRequirements'.
ModuleNotFoundError: No module named 'distutils.util'
***
***
> Process 'command 'python3.8'' finished with non-zero exit value 1
***
***
ModuleNotFoundError: No module named 'distutils.util'
***
***
Process 'command '/usr/bin/python3.8'' finished with non-zero exit value 1
***
gradle is update at last version 

2

Answers


  1. Chosen as BEST ANSWER

    My bad I just need sudo apt-get install python3.8-distutils now work


  2. You probably need to install the python3-distutils or python3.8-distutils package.

    Source: https://askubuntu.com/questions/1239829, which is the first Google result for this error message.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search