Neo-Oli / termux-ubuntu

Ubuntu chroot on termux
863 stars 312 forks source link

PiP is not working #78

Open Sweetharry1992 opened 5 years ago

Sweetharry1992 commented 5 years ago

every thing is work perfectly for me but main issue is python-pip is not working im on Samsung C5 with Android v9 -----------------------------see blow---------------------------- root@localhost:/# pip install dryscrape Traceback (most recent call last): File "/usr/bin/pip", line 9, in from pip import main File "/usr/lib/python2.7/dist-packages/pip/init.py", line 22, in from pip._vendor.requests.packages.urllib3.exceptions import DependencyWarning File "/usr/lib/python2.7/dist-packages/pip/_vendor/init.py", line 65, in vendored("colorama") File "/usr/lib/python2.7/dist-packages/pip/_vendor/init.py", line 36, in vendored import(modulename, globals(), locals(), level=0) File "/usr/share/python-wheels/colorama-0.3.7-py2.py3-none-any.whl/colorama/init.py", line 2, in File "/usr/share/python-wheels/colorama-0.3.7-py2.py3-none-any.whl/colorama/initialise.py", line 6, in File "/usr/share/python-wheels/colorama-0.3.7-py2.py3-none-any.whl/colorama/ansitowin32.py", line 7, in File "/usr/share/python-wheels/colorama-0.3.7-py2.py3-none-any.whl/colorama/winterm.py", line 2, in File "/usr/share/python-wheels/colorama-0.3.7-py2.py3-none-any.whl/colorama/win32.py", line 8, in File "/usr/lib/python2.7/ctypes/init.py", line 556, in _reset_cache() File "/usr/lib/python2.7/ctypes/init.py", line 276, in _reset_cache CFUNCTYPE(c_int)(lambda: None) MemoryError

root@localhost:/# which python /usr/bin/python root@localhost:/# which pip /usr/bin/pip -------------------------END------------------- also try with --no-cache-dir also try with python -m pip install dryscrape also try with pip -v also try get_pip.py for update the pip every time same error comes please try to fix it or tell me what i do

2nd issue is npm not installing packages but after all its working amazingly great job guys keep it up

dangpzanco commented 5 years ago

Hey, uhm... I recieved an email notification with your username as the sender and I thought it was a spam bot that gmail couldn't catch. So, maybe change your username, because other people might not take your messages seriously.

Never mind that, about your problem: it seems like one of those fatal unrecoverable errors pip sometimes makes, like when you try updating pip via sudo pip install -U pip (don't try this at home). My advice is to:

Option 1

Use Python 3: Python 2 is retiring in 1 year from now (check the countdown here) and most libs already support Python 3.

Option 2

Reinstall everything: if you run sudo apt purge python2, you'll probably destroy your ubuntu distro. So, try reinstalling EVERYTHING: delete the ubuntu folder and rerun the script.

Sweetharry1992 commented 5 years ago

i reinstall Ubuntu-on-termux and try again with only apt install python3 python3-pip python3-setuptools after installing everything then i type ----------------------------see blow--------------------------- root@localhost:/# pip3 -V Traceback (most recent call last): File "/usr/lib/python3/dist-packages/pip/_vendor/init.py", line 33, in vendored import(vendored_name, globals(), locals(), level=0) ModuleNotFoundError: No module named 'pip._vendor.colorama'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/bin/pip3", line 9, in from pip import main File "/usr/lib/python3/dist-packages/pip/init.py", line 22, in from pip._vendor.requests.packages.urllib3.exceptions import DependencyWarning File "/usr/lib/python3/dist-packages/pip/_vendor/init.py", line 65, in vendored("colorama") File "/usr/lib/python3/dist-packages/pip/_vendor/init.py", line 36, in vendored import(modulename, globals(), locals(), level=0) File "", line 971, in _find_and_load File "", line 955, in _find_and_load_unlocked File "", line 656, in _load_unlocked File "", line 626, in _load_backward_compatible File "/usr/share/python-wheels/colorama-0.3.7-py2.py3-none-any.whl/colorama/init.py", line 2, in File "", line 971, in _find_and_load File "", line 955, in _find_and_load_unlocked File "", line 656, in _load_unlocked File "", line 626, in _load_backward_compatible File "/usr/share/python-wheels/colorama-0.3.7-py2.py3-none-any.whl/colorama/initialise.py", line 6, in File "", line 971, in _find_and_load File "", line 955, in _find_and_load_unlocked File "", line 656, in _load_unlocked File "", line 626, in _load_backward_compatible File "/usr/share/python-wheels/colorama-0.3.7-py2.py3-none-any.whl/colorama/ansitowin32.py", line 7, in File "", line 971, in _find_and_load File "", line 955, in _find_and_load_unlocked File "", line 656, in _load_unlocked File "", line 626, in _load_backward_compatible File "/usr/share/python-wheels/colorama-0.3.7-py2.py3-none-any.whl/colorama/winterm.py", line 2, in File "", line 971, in _find_and_load File "", line 955, in _find_and_load_unlocked File "", line 656, in _load_unlocked File "", line 626, in _load_backward_compatible File "/usr/share/python-wheels/colorama-0.3.7-py2.py3-none-any.whl/colorama/win32.py", line 8, in File "/usr/lib/python3.6/ctypes/init.py", line 538, in _reset_cache() File "/usr/lib/python3.6/ctypes/init.py", line 273, in _reset_cache CFUNCTYPE(c_int)(lambda: None) MemoryError

root@localhost:/# python3 -V Python 3.6.7 root@localhost:/# which python3 /usr/bin/python3 root@localhost:/# which pip3 /usr/bin/pip3 ---------------------------END----------------------- try with python3 -m pip -V also try to install any pkg both methods try pip3 --no-color --no-cache-dir error comes again and again whats the Problem ????

utzlol commented 5 years ago

try pypi