Termux-packages: Can't install python 3.6.2

Created on 27 Jul 2017  Β·  93Comments  Β·  Source: termux/termux-packages

After update python to version 3.6.2 i can't install it.
Termux freezes after line Setting up pip...
Tried reinstall termux, and install on another identical phone, python 3.6.2 is not installed.
Python 2 has installed correct.
Device: Meizu m2 mini, android 5.1

uname -a
Linux localhost 3.10.65+ #1 SMP PREEMPT Thu Oct 27 17:21:56 CST 2016 aarch64 Android

Where i can find any log to related problem?
screen

bug report help wanted

All 93 comments

I tried comment out ../usr/var/lib/dpkg/info/python.postinst
The problem with python itself. It doesn't start. No error message.
How to determine a problem?

5.1 has some weird bugs. Like for instance a small charcter input per line.

After this commit d3e5452e python not work... Any ideas?


A temporary solution for me: git checkout 9eca7974 and sync /packages/python/ to master.
After this i compile and manual install python 3.6.2.

s70731-090104
I've also same problem πŸ˜₯😰
python 3.6.2 installation issue #1184

Help me please how can i install python 3.6.2????

im doing some tests to see if i can work out what is going on. Try this
https://github.com/its-pointless/gcc_termux/raw/master/python_3.6.2_arm.deb

Not install: package architecture (arm) does not match system (aarch64).

where i move this .deb file?and how to do this?

s70801-010822

solve this issue, anyone is here?????

What arch are you using?
arm, aarch64, i686 or x86-64
I will assume aarch64?

Meizu m2 - 64bit and also aarch64

Please help!!!!!

Or my phone lag/hang after dpkg...

please solve this python issue, 2week before my python 3.6.2 working well but after I've uninstall termux and re-install it. Then i install python....so I'm getting this issue.....πŸ˜…πŸ˜’πŸ˜₯πŸ˜₯πŸ˜₯πŸ˜₯

Try this: https://github.com/allkhor/t-python/raw/master/python_3.6.2_aarch64.deb
Tested on a meizu m2 mini.
Install on clean termux:
1) apt update && apt upgrade -y
2) move deb on your phone.
3) apt install /path/to/python.deb (/storage/sdcard1/termux-pkgs/python_3.6.2_aarch64.deb)
4) echo "python hold" | dpkg --set-selections (optional hold to freeze package version)

s70801-143752

Thank you so much..πŸ˜ƒπŸ˜ƒπŸ˜ƒ

You are welcome!
Issue still open, because as i say before, after switched to building with unified headers, python 3.6.2 not install on meizu m2(android 5.1).

Don't close Issue, untill this unified headers not fix in meizu m2..

Because Termux is not a particular linux distros like a debian or a fedora. Termux is a a terminal emulator and Linux environment. You can ask a people's for help on a gitter or a irc. Please don't spam this issue, you can delete your comments not relevant to this problem, thanks 8)

$ apt list |grep python

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

python/stable,now 3.6.2 aarch64 [installed]
python-dev/stable,now 3.6.2 aarch64 [installed]
python2/stable,now 2.7.13 aarch64 [installed]
python2-dev/stable,now 2.7.13 aarch64 [installed]
vim-python/stable 8.0.0753 aarch64
weechat-python-plugin/stable,now 1.9 aarch64 [installed]

Termux-packages arch:
aarch64
Android version:
6.0.1

@allkhor Is your phone rooted?

@sdrausty, my phone not rooted.

@allkhor Thank you for your time and response. I would like to share with you my experience with rooting Android https://github.com/sdrausty/sdrausty.github.io/blob/master/pages/rooting.md

@sdrausty Hello! How rooting my phone will help to solved this issue? To root my phone Meizu provide settings in two click to achieve this. I have second phone with a root and python not install on it.
Maybe it's Meizu specific bug, or android 5.1 x64arch.
I tested on Asus pad with android 5.0 x86 and python install correct.

Hello! Someone would like to experience my Termux special small penetration test running environment package? Which has been installed and configured these tools: nmap, sqlmap, metasploit-framework, bettercap, routersploit, hydra and so on. Use some tools or operations that require root privileges, like bettercap, use nmap with some parameter, as well as using port numbers less than 1024. Only need to extract and overwrite the original file after the restart Termux can.
Download Link : https://drive.google.com/file/d/0ByNiLi-FgL1-eU8zZzh2dzRkVzA/view?usp=drivesdk
Only for Arm64 bit processor platform Android Phone.
Want to know more, please reply to me in my blog!
https://droid-max.github.io/2017/08/02/Deploy-MSF-and-Postgresql-on-Termux/
In addition, I also use Meizu m2 mini.

@allkhor I am not suggesting rooting to solve this issue at all. I am simply curious whether rooting Android is the cause of many failures, or just a few...

Not working python3 in meizu m2...

s70818-112151

Please solve this..

Using the official software source to install Python3 will go wrong

s70818-112927

You can use my bundled special solution for the small penetration test of the Termux, which has been installed and configured with Python2 and Python3

After 66% not work

How to install your bundled

Please give me any idea? Your bundle size is 500+ mb

After the deployment of the environmental package, will be used to 1.6G or so built-in storage space

Okk, but after download..... What command I'll apply?

My running environment package deployment tutorial is written in Chinese, in my blog comment area

But i don't know Chinese language 😰

The latest operating environment package file size is 534M, the file test value is as follows:
FileName: termux-files-aarch64.tar.gz
MD5: ed:b3:5b:d2:8e:59:4c:2f:0d:41:52:cc:47:bc:35:3c
SHA1: be:ee:8b:dd:24:83:4d:d3:15:3c:c1:af:5f:5e:a7:1c:e4:94:33:fe

after download what I'll do and what command I'll aplly to install this package....

In which directory I'll install this package?

Download the environment package and move to the /sdcard directory, install and start Termux, install the termux-tools package online, execute termux-setup-storage access read and write built-in storage permissions, execute tar xzvf /sdcard/termux-files-aarch64.tar.gz -C /data/data/com.termux/ wait for decompression is complete, restart Termux

Okk Thank You πŸ˜ƒ

It is best to reset all application data for Termux before using my environment package

But this package tested on meizu m2????

Yes, no problem, but it is best to have root privileges

Yes my phone is root.

Only I'll apply update and upgrade command in termux after I'll install your package, ok

Remember, do not update python3 and metasploit-framework

Do not use git pull to update metasploit-framework

Okk, I'll not apply any update command.

can you give me your any contact???????????

I think using Telegram might be safe.....
So you have any Telegram group?

Yes and my username of telegram is @themastersunil and my telegram group link is https://t.me/joinchat/Dn1hPUQ3iqCGlEmsDy4VbA

Droid-MAX,plz reupload your file (https://drive.google.com/file/d/0ByNiLi-FgL1-eU8zZzh2dzRkVzA/view?usp=drivesdk),so I can use it

Same problem, anyone has solution?

strace might give you hint in such case...

@pacoyang My friend had the same problem and by doing strace I found solution but I am not sure your case is exactly same as him but you can try this ln -sf $PREFIX/lib/libandroid-support.so $PREFIX/lib/libintl.so
If it will not work so I have old deb of Python 3 if u want I can give here .

@Hax4us Please post the old deb of Python 3

Feedback: After I try doing strace, I found the install program is keep calling the getrandom function

 24847 getrandom("", 24, GRND_NONBLOCK)  = 0
 24847 getrandom("", 24, GRND_NONBLOCK)  = 0
 24847 getrandom("", 24, GRND_NONBLOCK)  = 0
 24847 getrandom("", 24, GRND_NONBLOCK)  = 0
 24847 getrandom("", 24, GRND_NONBLOCK)  = 0
 24847 getrandom("", 24, GRND_NONBLOCK)  = 0
 24847 getrandom("", 24, GRND_NONBLOCK)  = 0
 24847 getrandom("", 24, GRND_NONBLOCK)  = 0
 24847 getrandom("", 24, GRND_NONBLOCK)  = 0
 24847 getrandom("", 24, GRND_NONBLOCK)  = 0
 24847 getrandom("", 24, GRND_NONBLOCK)  = 0
 24847 getrandom("", 24, GRND_NONBLOCK)  = 0

python_3.6.2_aarch64.zip
@pacoyang change .zip to .deb then install

@Hax4us Thanks a lot! It works!
@themastersunil your last problem which run python and return nothing. After I strace the python command, I found that it loss found the libintl.so file, and the solution just run the command below

ln -sf $PREFIX/lib/libandroid-support.so $PREFIX/lib/libintl.so

Hey guys, HELP ME PLS, So problem, in meizu m3s, I want to install python 3.6.6, but return setting pip... HELP PLEASE!

Same thing on Fire TV :(

Same thing on Fire TV :(

@kilork Termux does not provide older versions of packages. We using a rolling-release scheme for publishing updates. So you have to use available version of python or compile it yourself.

I have new issue plz solv this help plz
Mengambil 3 id teman
Traceback (most recent call last):
File "MBF2.pye", line 1, in
File "

Related issues

reggi picture reggi  Β·  4Comments

Wetitpig picture Wetitpig  Β·  3Comments

neitsab picture neitsab  Β·  3Comments

bbtdev picture bbtdev  Β·  3Comments

Cyb3rD3m0n picture Cyb3rD3m0n  Β·  3Comments