qpython-android / qpython

QPython is an Android Python engine primarily designed for Python and AI learners. It offers a range of impressive features to enhance Python programming experience.
https://www.qpython.org
1.06k stars 193 forks source link

Unable to install any module with pip or QPypi #113

Open Melab opened 6 years ago

Melab commented 6 years ago

I am running the latest version of QPython 3 (I have not installed the Python 3.6 plugin) and I am unable install any module using QPyPI or pip.

Here is the output of running pip install binwalk:

qpython.sh "/data/data/org.qpython.qpy3/files/bin/pip4console.py" && exit                     <
Input pip commands, ie: pip install {module}
-->pip install binwalk
Downloading/unpacking binwalk
  Running setup.py egg_info for package binwalk

Installing collected packages: binwalk
  Running setup.py install for binwalk
    error: invalid Python installation: unable to open /sdcard/qpython/lib/python3.2/config-3.2m/Makefile (No such file or directory)
    Complete output from command /data/data/org.qpython.qpy3/files/bin/python -c "import setuptools;__file__='/storage/emulated/0/qpython/cache/pip-build/binwalk/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /storage/emulated/0/qpython/cache/pip-gllaoy-record/install-record.txt --single-version-externally-managed:
    running install

error: invalid Python installation: unable to open /sdcard/qpython/lib/python3.2/config-3.2m/Makefile (No such file or directory)

----------------------------------------
Command /data/data/org.qpython.qpy3/files/bin/python -c "import setuptools;__file__='/storage/emulated/0/qpython/cache/pip-build/binwalk/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /storage/emulated/0/qpython/cache/pip-gllaoy-record/install-record.txt --single-version-externally-managed failed with error code 1 in /storage/emulated/0/qpython/cache/pip-build/binwalk
Storing complete log in /sdcard/qpython/.pip/pip.log
-->

This is the output of trying to install the QPython version of IPython:

-i  http://qpypi3.qpython.org/simple/  --extra-index-url  https://pypi.python.org/simple/  && exit                          <
Downloading/unpacking ipython-qpython
  Running setup.py egg_info for package ipython-qpython

    package init file 'IPython/core/profile/__init__.py' not found (or not a regular file)
    package init file 'IPython/core/tests/daft_extension/__init__.py' not found (or not a regular file)
Downloading/unpacking traitlets (from ipython-qpython)
  Running setup.py egg_info for package traitlets
    ERROR: traitlets requires Python version 2.7 or 3.3 or above.
    Complete output from command python setup.py egg_info:
    ERROR: traitlets requires Python version 2.7 or 3.3 or above.

----------------------------------------
Command python setup.py egg_info failed with error code 1 in /storage/emulated/0/qpython/cache/pip-build/traitlets
Storing complete log in /sdcard/qpython/.pip/pip.log
1|u0_a157@mango:/ $
jordanwilson230 commented 6 years ago

Same

alirezaimi commented 6 years ago

same with paho-mqtt

jrdutra commented 6 years ago

Same here..

rizerphe commented 6 years ago

same with scipy, numpy, pillow... No solution? I found that maybe the problem is because it downloads windows code, not c/python/android, but I'm not completely sure, and also I don't know how to fix it.

ErikSchiegg commented 5 years ago

same with esptool

created the missing dirs manually, still doesn't work

DracoY-code commented 4 years ago

The problem is still there. I tried discord.py and dotenv.