I was trying to install new packages in an application with pip, but I got this error
from pip._internal import main as pipmain
pipmain(['install','mechanize','-t .'])
Yes need change directory to home:
import os
os.chdir("/data/data/com.lamineml.compiler_python3/files/")