error OSError: [Errno 30] Read-only file system: '/ '
Question:
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 .'])
Answers:
If you want to add packages to your app, don’t run pip at runtime, use Chaquopy’s built-in pip support as documented here.
Yes need change directory to home:
import os
os.chdir("/data/data/com.lamineml.compiler_python3/files/")
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 .'])
If you want to add packages to your app, don’t run pip at runtime, use Chaquopy’s built-in pip support as documented here.
Yes need change directory to home:
import os
os.chdir("/data/data/com.lamineml.compiler_python3/files/")