Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install pip (Python in MobileC in Android) #38

Open
feria35 opened this issue Jun 15, 2020 · 0 comments
Open

Unable to install pip (Python in MobileC in Android) #38

feria35 opened this issue Jun 15, 2020 · 0 comments

Comments

@feria35
Copy link

feria35 commented Jun 15, 2020

Hello dztall,

I have installed your Mobile C application on Android.
And I would like to install pip in python.
But I can't manage it.

Of course, I have lauched your install program in Example : 'install_python_pip.c '
I have an error.

The problem is in the instruction

python -m ensurepip --default-pip

Here is the error :

Traceback (most recent call last): File "~/Python3/Lib/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "~/Python3/Lib/runpy.py", line 85, in _run_code exec(code, run_globals) File "~/Python3/Lib/ensurepip/__main__.py", line 5, in <module> sys.exit(ensurepip._main()) File "~/Python3/Lib/ensurepip/__init__.py", line 204, in _main default_pip=args.default_pip, File "~/Python3/Lib/ensurepip/__init__.py", line 117, in _bootstrap return _run_pip(args + [p[0] for p in _PROJECTS], additional_paths) File "~/Python3/Lib/ensurepip/__init__.py", line 27, in _run_pip import pip._internal File "<frozen importlib._bootstrap>", line 983, in _find_and_load File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 668, in _load_unlocked File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible File "~/tmp/tmp1nncsq5i/pip-10.0.1-py2.py3-none-any.whl/pip/_internal/__init__.py", line 42, in <module> File "<frozen importlib._bootstrap>", line 983, in _find_and_load File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 668, in _load_unlocked File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible File "~/tmp/tmp1nncsq5i/pip-10.0.1-py2.py3-none-any.whl/pip/_internal/cmdoptions.py", line 16, in <module> File "<frozen importlib._bootstrap>", line 983, in _find_and_load File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 668, in _load_unlocked File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible File "~/tmp/tmp1nncsq5i/pip-10.0.1-py2.py3-none-any.whl/pip/_internal/index.py", line 15, in <module> File "<frozen importlib._bootstrap>", line 983, in _find_and_load File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 668, in _load_unlocked File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible File "~/tmp/tmp1nncsq5i/pip-10.0.1-py2.py3-none-any.whl/pip/_vendor/requests/__init__.py", line 99, in <module> File "<frozen importlib._bootstrap>", line 983, in _find_and_load File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 668, in _load_unlocked File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible File "~/tmp/tmp1nncsq5i/pip-10.0.1-py2.py3-none-any.whl/pip/_vendor/requests/utils.py", line 42, in <module> File "~/Python3/Lib/platform.py", line 1035, in system return uname().system File "~/Python3/Lib/platform.py", line 1001, in uname processor = _syscmd_uname('-p', '') File "~/Python3/Lib/platform.py", line 755, in _syscmd_uname f = os.popen('uname %s 2> %s' % (option, DEV_NULL)) File "~/Python3/Lib/os.py", line 989, in popen bufsize=buffering) File "~/Python3/Lib/subprocess.py", line 756, in __init__ restore_signals, start_new_session) File "~/Python3/Lib/subprocess.py", line 1500, in _execute_child raise child_exception_type(err_msg) subprocess.SubprocessError ~/Python3/bin/python.c: No module named pip

And if I try to install a module, I have this error :

`Mobile C Shell 1.0.0
Type 'help' to see available commands.

UserFiles> pip install numpy
pip : Command not found.
UserFiles> python -m pip install numpy
Could not find platform independent libraries
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to [:<exec_prefix>]
Fatal Python error: initfsencoding: unable to load the file system codec
ModuleNotFoundError: No module named 'encodings'

Current thread 0x9acfd230 (most recent call first):
Program aborted.`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant