ish-app / ish

Linux shell for iOS
https://ish.app
Other
16.78k stars 880 forks source link

Added py3-pip #346

Closed lakshaygarg1701 closed 5 years ago

lakshaygarg1701 commented 5 years ago

Now it cannot install any packages that I intend to install šŸ˜•

tbodt commented 5 years ago

What does it do instead of working?

lakshaygarg1701 commented 5 years ago

It has been installed. The app froze when I was installing django, so I force closed it. I reopened it, and it was installed. Thanks for the support BTW

GJZ0117 commented 4 years ago

Excuse me,I want to ask a question about pip3.After I install python3,I want to pip some packages.But the command ā€˜pip3ā€™ canā€™t run.It always says ā€œ Traceback (most recent call last): File "/usr/bin/pip3", line 7, in from pip._internal import main File "/usr/lib/python3.6/site-packages/pip/_internal/init.py", line 40, in from pip._internal.cli.autocompletion import autocomplete File "/usr/lib/python3.6/site-packages/pip/_internal/cli/autocompletion.py", line 8, in from pip._internal.cli.main_parser import create_main_parser File "/usr/lib/python3.6/site-packages/pip/_internal/cli/main_parser.py", line 8, in from pip._internal.cli import cmdoptions File "/usr/lib/python3.6/site-packages/pip/_internal/cli/cmdoptions.py", line 20, in from pip._internal.utils.hashes import STRONG_HASHES File "/usr/lib/python3.6/site-packages/pip/_internal/utils/hashes.py", line 10, in from pip._internal.utils.misc import read_chunks File "/usr/lib/python3.6/site-packages/pip/_internal/utils/misc.py", line 21, in from pip._vendor import pkg_resources File "/usr/lib/python3.6/site-packages/pip/_vendor/pkg_resources/init.py", line 35, in import plistlib File "/usr/lib/python3.6/plistlib.py", line 65, in from xml.parsers.expat import ParserCreate File "/usr/lib/python3.6/xml/parsers/expat.py", line 4, in from pyexpat import * ImportError: Error relocating /usr/lib/libexpat.so.1: getrandom: symbol not foundā€

After that,I install py-pip from apk add, but this pip is to python2,however I need python3. How did you do to use pip3 correctly?

lakshaygarg1701 commented 4 years ago

Excuse me,I want to ask a question about pip3.After I install python3,I want to pip some packages.But the command ā€˜pip3ā€™ canā€™t run.It always says ā€œ Traceback (most recent call last): File "/usr/bin/pip3", line 7, in from pip._internal import main File "/usr/lib/python3.6/site-packages/pip/_internal/init.py", line 40, in from pip._internal.cli.autocompletion import autocomplete File "/usr/lib/python3.6/site-packages/pip/_internal/cli/autocompletion.py", line 8, in from pip._internal.cli.main_parser import create_main_parser File "/usr/lib/python3.6/site-packages/pip/_internal/cli/main_parser.py", line 8, in from pip._internal.cli import cmdoptions File "/usr/lib/python3.6/site-packages/pip/_internal/cli/cmdoptions.py", line 20, in from pip._internal.utils.hashes import STRONG_HASHES File "/usr/lib/python3.6/site-packages/pip/_internal/utils/hashes.py", line 10, in from pip._internal.utils.misc import read_chunks File "/usr/lib/python3.6/site-packages/pip/_internal/utils/misc.py", line 21, in from pip._vendor import pkg_resources File "/usr/lib/python3.6/site-packages/pip/_vendor/pkg_resources/init.py", line 35, in import plistlib File "/usr/lib/python3.6/plistlib.py", line 65, in from xml.parsers.expat import ParserCreate File "/usr/lib/python3.6/xml/parsers/expat.py", line 4, in from pyexpat import * ImportError: Error relocating /usr/lib/libexpat.so.1: getrandom: symbol not foundā€

After that,I install py-pip from apk add, but this pip is to python2,however I need python3. How did you do to use pip3 correctly?

YVHSKV7:~# pip3 install numpy Collecting numpy Downloading https://files.pythonhosted.org/packages/31/0a/5df350c29a06835d534a6c4f5681075304da38d85f1c69e5226a635a67ce/numpy-1.18.0.zip (5.4MB)

YVHSKV7:~# pip install --upgrade pip Collecting pip Downloading https://files.pythonhosted.org/packages/00/b6/9cfa56b4081ad13874b0c6f96af8ce16cfbc1cb06bedf8e9164ce5551ec1/pip-19.3.1-py2.py3-none-any.whl (1.4MB)

YVHSKV7:~# pip3 install --upgrade django Collecting django Downloading https://files.pythonhosted.org/packages/6a/23/08f7fd7afdd24184a400fcaebf921bd09b5b5235cbd62ffa02308a7d35d6/Django-3.0.1-py3-none-any.whl (7.4MB)

YVHSKV7:~# pip3 --version pip 19.3.1 from /usr/lib/python3.6/site-packages/pip (python 3.6)

YVHSKV7:~# pip3 freeze asgiref==3.2.3 Django==3.0.1 pytz==2018.9 sqlparse==0.3.0

YVHSKV7:~# pip3 uninstall django Uninstalling Django-3.0.1:

As you can see, it is working fine for me

dlevi309 commented 4 years ago

apk add python3

Then

pip3 install ā€”upgrade pip

GJZ0117 commented 4 years ago

apk add python3

Then

pip3 install ā€”upgrade pip

I reinstall ish.And then, I apk add gcc build-base g++ python3.After upgrade pip,I want to install numpy and some other packages.But after download it says ā€œ

gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -DTHREAD_STACK_SIZE=0x100000 -fPIC -I/usr/include/python3.6m -c /tmp/pip-install-9dvwl965/Cython/Cython/Plex/Scanners.c -o build/temp.linux-i686-3.6/tmp/pip-install-9dvwl965/Cython/Cython/Plex/Scanners.o /tmp/pip-install-9dvwl965/Cython/Cython/Plex/Scanners.c:19:20: fatal error: Python.h: No such file or directory

include "Python.h"

                      ^
  compilation terminated.
  error: command 'gcc' failed with exit status 1

ā€ Same things happen on pandas,matplotlib,lxml. Sounds like they lack something about C program(xxx-dev). Where can I install these dev all? Or can you talk about what steps you installed python3 and packages?

lakshaygarg1701 commented 4 years ago

apk add python3 Then pip3 install ā€”upgrade pip

I reinstall ish.And then, I apk add gcc build-base g++ python3.After upgrade pip,I want to install numpy and some other packages.But after download it says ā€œ

gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -DTHREAD_STACK_SIZE=0x100000 -fPIC -I/usr/include/python3.6m -c /tmp/pip-install-9dvwl965/Cython/Cython/Plex/Scanners.c -o build/temp.linux-i686-3.6/tmp/pip-install-9dvwl965/Cython/Cython/Plex/Scanners.o /tmp/pip-install-9dvwl965/Cython/Cython/Plex/Scanners.c:19:20: fatal error: Python.h: No such file or directory

include "Python.h"

^ compilation terminated. error: command 'gcc' failed with exit status 1

ā€ Same things happen on pandas,matplotlib,lxml. Sounds like they lack something about C program(xxx-dev). Where can I install these dev all? Or can you talk about what steps you installed python3 and packages?

YVHSKV7:~# apk add gcc build-base g++ python3 (1/20) Upgrading musl (1.1.20-r3 -> 1.1.20-r5) (2/20) Installing binutils (2.31.1-r2)

It is working fine for me

GJZ0117 commented 4 years ago

apk add python3 Then pip3 install ā€”upgrade pip

I reinstall ish.And then, I apk add gcc build-base g++ python3.After upgrade pip,I want to install numpy and some other packages.But after download it says ā€œ gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -Os -fomit-frame-pointer -g -DTHREAD_STACK_SIZE=0x100000 -fPIC -I/usr/include/python3.6m -c /tmp/pip-install-9dvwl965/Cython/Cython/Plex/Scanners.c -o build/temp.linux-i686-3.6/tmp/pip-install-9dvwl965/Cython/Cython/Plex/Scanners.o /tmp/pip-install-9dvwl965/Cython/Cython/Plex/Scanners.c:19:20: fatal error: Python.h: No such file or directory

include "Python.h"

^ compilation terminated. error: command 'gcc' failed with exit status 1 ā€ Same things happen on pandas,matplotlib,lxml. Sounds like they lack something about C program(xxx-dev). Where can I install these dev all? Or can you talk about what steps you installed python3 and packages?

YVHSKV7:~# apk add gcc build-base g++ python3 (1/20) Upgrading musl (1.1.20-r3 -> 1.1.20-r5) (2/20) Installing binutils (2.31.1-r2)

It is working fine for me

I install django successfully ,too.But still can not install numpy,matplotlin.Could you please try to install numpy ? I want to know if it is my iPad problem. Thank you

lakshaygarg1701 commented 4 years ago

YVHSKV7:~# pip3 install matplotlib Collecting matplotlib Downloading https://files.pythonhosted.org/packages/75/81/53ccadcb8cad0a9837f1487b57f2b46b21caa2b3f35f72bc1acb06b5825c/matplotlib-3.1.2.tar.gz (40.9MB)

It is working fine for me

BoKa33 commented 2 years ago

you made me smile <3 thy...

UnixCro commented 2 years ago

Fuck that shit. apk add python3

pip -ash pip not found

Bijuhack commented 1 year ago

I'm not able to install pip 2 bros help me

mrrobotbot commented 1 year ago

python3 -m ensurepip Thatā€™s should help