How do I sucessfully install python-telegram-bot into Termux?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
I have a problem. I made a simple web scrapping telegram bot and I want it to run on my old phone. However, I am not able to install python-telegram-bot via pip. I get this weird error message. Does anyone know how do I tackle this issue? Thank you
> $ pip install python-telegram-bot Collecting python-telegram-bot
> Using cached
> https://files.pythonhosted.org/packages/84/6c/47932a4041ee76650ad1f45a80e1422077e1e99c08a4d7a61cfbe5393d41/python_telegram_bot-11.1.0-py2.py3-none-any.whl
> Collecting future>=0.16.0 (from python-telegram-bot) Using cached
> https://files.pythonhosted.org/packages/90/52/e20466b85000a181e1e144fd8305caf2cf475e2f9674e797b222f8105f5f/future-0.17.1.tar.gz
> Collecting certifi (from python-telegram-bot) Using cached
> https://files.pythonhosted.org/packages/56/9d/1d02dd80bc4cd955f98980f28c5ee2200e1209292d5f9e9cc8d030d18655/certifi-2018.10.15-py2.py3-none-any.whl
> Collecting cryptography (from python-telegram-bot) Using cached
> https://files.pythonhosted.org/packages/f3/39/d3904df7c56f8654691c4ae1bdb270c1c9220d6da79bd3b1fbad91afd0e1/cryptography-2.4.2.tar.gz
> Installing build dependencies ... error Complete output from command
> /data/data/com.termux/files/usr/bin/python -m pip install
> --ignore-installed --no-user --prefix /data/data/com.termux/files/usr/tmp/pip-build-env-cvyz6a4p
> --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=18.5 wheel "cffi>=1.7,!=1.11.3;
> python_implementation != 'PyPy'": Collecting setuptools>=18.5
> Using cached https://files.pythonhosted.org/packages/e7/16/da8cb8046149d50940c6110310983abb359bbb8cbc3539e6bef95c29428a/setuptools-40.6.2-py2.py3-none-any.whl
> Collecting wheel
> Using cached https://files.pythonhosted.org/packages/ff/47/1dfa4795e24fd6f93d5d58602dd716c3f101cfd5a77cd9acbe519b44a0a9/wheel-0.32.3-py2.py3-none-any.whl
> Collecting cffi!=1.11.3,>=1.7
> Using cached https://files.pythonhosted.org/packages/e7/a7/4cd50e57cc6f436f1cc3a7e8fa700ff9b8b4d471620629074913e3735fb2/cffi-1.11.5.tar.gz
> Complete output from command python setup.py egg_info:
>
> No working compiler found, or bogus compiler options passed to
> the compiler from Python's standard "distutils" module. See
> the error messages above. Likely, the problem is not related
> to CFFI but generic to the setup.py of any Python package that
> tries to compile C code. (Hints: on OS/X 10.8, for errors about
> -mno-fused-madd see http://stackoverflow.com/questions/22313407/
> Otherwise, see https://wiki.python.org/moin/CompLangPython or
> the IRC channel #python on irc.freenode.net.)
>
> ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in
> /data/data/com.termux/files/usr/tmp/pip-install-kqmk4olx/cffi/
>
> ---------------------------------------- Command
> "/data/data/com.termux/files/usr/bin/python -m pip install
> --ignore-installed --no-user --prefix /data/data/com.termux/files/usr/tmp/pip-build-env-cvyz6a4p
> --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=18.5 wheel "cffi>=1.7,!=1.11.3;
> python_implementation != 'PyPy'"" failed with error code 1 in None $
python linux pip termux
add a comment |
I have a problem. I made a simple web scrapping telegram bot and I want it to run on my old phone. However, I am not able to install python-telegram-bot via pip. I get this weird error message. Does anyone know how do I tackle this issue? Thank you
> $ pip install python-telegram-bot Collecting python-telegram-bot
> Using cached
> https://files.pythonhosted.org/packages/84/6c/47932a4041ee76650ad1f45a80e1422077e1e99c08a4d7a61cfbe5393d41/python_telegram_bot-11.1.0-py2.py3-none-any.whl
> Collecting future>=0.16.0 (from python-telegram-bot) Using cached
> https://files.pythonhosted.org/packages/90/52/e20466b85000a181e1e144fd8305caf2cf475e2f9674e797b222f8105f5f/future-0.17.1.tar.gz
> Collecting certifi (from python-telegram-bot) Using cached
> https://files.pythonhosted.org/packages/56/9d/1d02dd80bc4cd955f98980f28c5ee2200e1209292d5f9e9cc8d030d18655/certifi-2018.10.15-py2.py3-none-any.whl
> Collecting cryptography (from python-telegram-bot) Using cached
> https://files.pythonhosted.org/packages/f3/39/d3904df7c56f8654691c4ae1bdb270c1c9220d6da79bd3b1fbad91afd0e1/cryptography-2.4.2.tar.gz
> Installing build dependencies ... error Complete output from command
> /data/data/com.termux/files/usr/bin/python -m pip install
> --ignore-installed --no-user --prefix /data/data/com.termux/files/usr/tmp/pip-build-env-cvyz6a4p
> --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=18.5 wheel "cffi>=1.7,!=1.11.3;
> python_implementation != 'PyPy'": Collecting setuptools>=18.5
> Using cached https://files.pythonhosted.org/packages/e7/16/da8cb8046149d50940c6110310983abb359bbb8cbc3539e6bef95c29428a/setuptools-40.6.2-py2.py3-none-any.whl
> Collecting wheel
> Using cached https://files.pythonhosted.org/packages/ff/47/1dfa4795e24fd6f93d5d58602dd716c3f101cfd5a77cd9acbe519b44a0a9/wheel-0.32.3-py2.py3-none-any.whl
> Collecting cffi!=1.11.3,>=1.7
> Using cached https://files.pythonhosted.org/packages/e7/a7/4cd50e57cc6f436f1cc3a7e8fa700ff9b8b4d471620629074913e3735fb2/cffi-1.11.5.tar.gz
> Complete output from command python setup.py egg_info:
>
> No working compiler found, or bogus compiler options passed to
> the compiler from Python's standard "distutils" module. See
> the error messages above. Likely, the problem is not related
> to CFFI but generic to the setup.py of any Python package that
> tries to compile C code. (Hints: on OS/X 10.8, for errors about
> -mno-fused-madd see http://stackoverflow.com/questions/22313407/
> Otherwise, see https://wiki.python.org/moin/CompLangPython or
> the IRC channel #python on irc.freenode.net.)
>
> ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in
> /data/data/com.termux/files/usr/tmp/pip-install-kqmk4olx/cffi/
>
> ---------------------------------------- Command
> "/data/data/com.termux/files/usr/bin/python -m pip install
> --ignore-installed --no-user --prefix /data/data/com.termux/files/usr/tmp/pip-build-env-cvyz6a4p
> --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=18.5 wheel "cffi>=1.7,!=1.11.3;
> python_implementation != 'PyPy'"" failed with error code 1 in None $
python linux pip termux
What "weird error message"?
– roganjosh
Nov 26 '18 at 17:15
It is on the screenshot that "error" links to.
– Maty
Nov 26 '18 at 17:17
Please dont include links to errors, links can expire. Your link also cuts off the text so we can't read the traceback properly
– roganjosh
Nov 26 '18 at 17:18
1
It's right there in the error message: you don't have a C compiler (like, e.g., gcc) installed
– Federico klez Culloca
Nov 26 '18 at 17:24
add a comment |
I have a problem. I made a simple web scrapping telegram bot and I want it to run on my old phone. However, I am not able to install python-telegram-bot via pip. I get this weird error message. Does anyone know how do I tackle this issue? Thank you
> $ pip install python-telegram-bot Collecting python-telegram-bot
> Using cached
> https://files.pythonhosted.org/packages/84/6c/47932a4041ee76650ad1f45a80e1422077e1e99c08a4d7a61cfbe5393d41/python_telegram_bot-11.1.0-py2.py3-none-any.whl
> Collecting future>=0.16.0 (from python-telegram-bot) Using cached
> https://files.pythonhosted.org/packages/90/52/e20466b85000a181e1e144fd8305caf2cf475e2f9674e797b222f8105f5f/future-0.17.1.tar.gz
> Collecting certifi (from python-telegram-bot) Using cached
> https://files.pythonhosted.org/packages/56/9d/1d02dd80bc4cd955f98980f28c5ee2200e1209292d5f9e9cc8d030d18655/certifi-2018.10.15-py2.py3-none-any.whl
> Collecting cryptography (from python-telegram-bot) Using cached
> https://files.pythonhosted.org/packages/f3/39/d3904df7c56f8654691c4ae1bdb270c1c9220d6da79bd3b1fbad91afd0e1/cryptography-2.4.2.tar.gz
> Installing build dependencies ... error Complete output from command
> /data/data/com.termux/files/usr/bin/python -m pip install
> --ignore-installed --no-user --prefix /data/data/com.termux/files/usr/tmp/pip-build-env-cvyz6a4p
> --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=18.5 wheel "cffi>=1.7,!=1.11.3;
> python_implementation != 'PyPy'": Collecting setuptools>=18.5
> Using cached https://files.pythonhosted.org/packages/e7/16/da8cb8046149d50940c6110310983abb359bbb8cbc3539e6bef95c29428a/setuptools-40.6.2-py2.py3-none-any.whl
> Collecting wheel
> Using cached https://files.pythonhosted.org/packages/ff/47/1dfa4795e24fd6f93d5d58602dd716c3f101cfd5a77cd9acbe519b44a0a9/wheel-0.32.3-py2.py3-none-any.whl
> Collecting cffi!=1.11.3,>=1.7
> Using cached https://files.pythonhosted.org/packages/e7/a7/4cd50e57cc6f436f1cc3a7e8fa700ff9b8b4d471620629074913e3735fb2/cffi-1.11.5.tar.gz
> Complete output from command python setup.py egg_info:
>
> No working compiler found, or bogus compiler options passed to
> the compiler from Python's standard "distutils" module. See
> the error messages above. Likely, the problem is not related
> to CFFI but generic to the setup.py of any Python package that
> tries to compile C code. (Hints: on OS/X 10.8, for errors about
> -mno-fused-madd see http://stackoverflow.com/questions/22313407/
> Otherwise, see https://wiki.python.org/moin/CompLangPython or
> the IRC channel #python on irc.freenode.net.)
>
> ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in
> /data/data/com.termux/files/usr/tmp/pip-install-kqmk4olx/cffi/
>
> ---------------------------------------- Command
> "/data/data/com.termux/files/usr/bin/python -m pip install
> --ignore-installed --no-user --prefix /data/data/com.termux/files/usr/tmp/pip-build-env-cvyz6a4p
> --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=18.5 wheel "cffi>=1.7,!=1.11.3;
> python_implementation != 'PyPy'"" failed with error code 1 in None $
python linux pip termux
I have a problem. I made a simple web scrapping telegram bot and I want it to run on my old phone. However, I am not able to install python-telegram-bot via pip. I get this weird error message. Does anyone know how do I tackle this issue? Thank you
> $ pip install python-telegram-bot Collecting python-telegram-bot
> Using cached
> https://files.pythonhosted.org/packages/84/6c/47932a4041ee76650ad1f45a80e1422077e1e99c08a4d7a61cfbe5393d41/python_telegram_bot-11.1.0-py2.py3-none-any.whl
> Collecting future>=0.16.0 (from python-telegram-bot) Using cached
> https://files.pythonhosted.org/packages/90/52/e20466b85000a181e1e144fd8305caf2cf475e2f9674e797b222f8105f5f/future-0.17.1.tar.gz
> Collecting certifi (from python-telegram-bot) Using cached
> https://files.pythonhosted.org/packages/56/9d/1d02dd80bc4cd955f98980f28c5ee2200e1209292d5f9e9cc8d030d18655/certifi-2018.10.15-py2.py3-none-any.whl
> Collecting cryptography (from python-telegram-bot) Using cached
> https://files.pythonhosted.org/packages/f3/39/d3904df7c56f8654691c4ae1bdb270c1c9220d6da79bd3b1fbad91afd0e1/cryptography-2.4.2.tar.gz
> Installing build dependencies ... error Complete output from command
> /data/data/com.termux/files/usr/bin/python -m pip install
> --ignore-installed --no-user --prefix /data/data/com.termux/files/usr/tmp/pip-build-env-cvyz6a4p
> --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=18.5 wheel "cffi>=1.7,!=1.11.3;
> python_implementation != 'PyPy'": Collecting setuptools>=18.5
> Using cached https://files.pythonhosted.org/packages/e7/16/da8cb8046149d50940c6110310983abb359bbb8cbc3539e6bef95c29428a/setuptools-40.6.2-py2.py3-none-any.whl
> Collecting wheel
> Using cached https://files.pythonhosted.org/packages/ff/47/1dfa4795e24fd6f93d5d58602dd716c3f101cfd5a77cd9acbe519b44a0a9/wheel-0.32.3-py2.py3-none-any.whl
> Collecting cffi!=1.11.3,>=1.7
> Using cached https://files.pythonhosted.org/packages/e7/a7/4cd50e57cc6f436f1cc3a7e8fa700ff9b8b4d471620629074913e3735fb2/cffi-1.11.5.tar.gz
> Complete output from command python setup.py egg_info:
>
> No working compiler found, or bogus compiler options passed to
> the compiler from Python's standard "distutils" module. See
> the error messages above. Likely, the problem is not related
> to CFFI but generic to the setup.py of any Python package that
> tries to compile C code. (Hints: on OS/X 10.8, for errors about
> -mno-fused-madd see http://stackoverflow.com/questions/22313407/
> Otherwise, see https://wiki.python.org/moin/CompLangPython or
> the IRC channel #python on irc.freenode.net.)
>
> ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in
> /data/data/com.termux/files/usr/tmp/pip-install-kqmk4olx/cffi/
>
> ---------------------------------------- Command
> "/data/data/com.termux/files/usr/bin/python -m pip install
> --ignore-installed --no-user --prefix /data/data/com.termux/files/usr/tmp/pip-build-env-cvyz6a4p
> --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=18.5 wheel "cffi>=1.7,!=1.11.3;
> python_implementation != 'PyPy'"" failed with error code 1 in None $
python linux pip termux
python linux pip termux
edited Nov 26 '18 at 19:15
PGCodeRider
2,2141928
2,2141928
asked Nov 26 '18 at 17:15
MatyMaty
11
11
What "weird error message"?
– roganjosh
Nov 26 '18 at 17:15
It is on the screenshot that "error" links to.
– Maty
Nov 26 '18 at 17:17
Please dont include links to errors, links can expire. Your link also cuts off the text so we can't read the traceback properly
– roganjosh
Nov 26 '18 at 17:18
1
It's right there in the error message: you don't have a C compiler (like, e.g., gcc) installed
– Federico klez Culloca
Nov 26 '18 at 17:24
add a comment |
What "weird error message"?
– roganjosh
Nov 26 '18 at 17:15
It is on the screenshot that "error" links to.
– Maty
Nov 26 '18 at 17:17
Please dont include links to errors, links can expire. Your link also cuts off the text so we can't read the traceback properly
– roganjosh
Nov 26 '18 at 17:18
1
It's right there in the error message: you don't have a C compiler (like, e.g., gcc) installed
– Federico klez Culloca
Nov 26 '18 at 17:24
What "weird error message"?
– roganjosh
Nov 26 '18 at 17:15
What "weird error message"?
– roganjosh
Nov 26 '18 at 17:15
It is on the screenshot that "error" links to.
– Maty
Nov 26 '18 at 17:17
It is on the screenshot that "error" links to.
– Maty
Nov 26 '18 at 17:17
Please dont include links to errors, links can expire. Your link also cuts off the text so we can't read the traceback properly
– roganjosh
Nov 26 '18 at 17:18
Please dont include links to errors, links can expire. Your link also cuts off the text so we can't read the traceback properly
– roganjosh
Nov 26 '18 at 17:18
1
1
It's right there in the error message: you don't have a C compiler (like, e.g., gcc) installed
– Federico klez Culloca
Nov 26 '18 at 17:24
It's right there in the error message: you don't have a C compiler (like, e.g., gcc) installed
– Federico klez Culloca
Nov 26 '18 at 17:24
add a comment |
1 Answer
1
active
oldest
votes
You have to have development toolchain (a compiler and all that) for Termux. By default you can install clang:
pkg install clang python-dev
You can also try gcc, see
https://android.stackexchange.com/a/186223
and
https://wiki.termux.com/wiki/Package_Management#Community_repositories
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53486027%2fhow-do-i-sucessfully-install-python-telegram-bot-into-termux%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You have to have development toolchain (a compiler and all that) for Termux. By default you can install clang:
pkg install clang python-dev
You can also try gcc, see
https://android.stackexchange.com/a/186223
and
https://wiki.termux.com/wiki/Package_Management#Community_repositories
add a comment |
You have to have development toolchain (a compiler and all that) for Termux. By default you can install clang:
pkg install clang python-dev
You can also try gcc, see
https://android.stackexchange.com/a/186223
and
https://wiki.termux.com/wiki/Package_Management#Community_repositories
add a comment |
You have to have development toolchain (a compiler and all that) for Termux. By default you can install clang:
pkg install clang python-dev
You can also try gcc, see
https://android.stackexchange.com/a/186223
and
https://wiki.termux.com/wiki/Package_Management#Community_repositories
You have to have development toolchain (a compiler and all that) for Termux. By default you can install clang:
pkg install clang python-dev
You can also try gcc, see
https://android.stackexchange.com/a/186223
and
https://wiki.termux.com/wiki/Package_Management#Community_repositories
answered Nov 26 '18 at 17:39
phdphd
24.3k52647
24.3k52647
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53486027%2fhow-do-i-sucessfully-install-python-telegram-bot-into-termux%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
What "weird error message"?
– roganjosh
Nov 26 '18 at 17:15
It is on the screenshot that "error" links to.
– Maty
Nov 26 '18 at 17:17
Please dont include links to errors, links can expire. Your link also cuts off the text so we can't read the traceback properly
– roganjosh
Nov 26 '18 at 17:18
1
It's right there in the error message: you don't have a C compiler (like, e.g., gcc) installed
– Federico klez Culloca
Nov 26 '18 at 17:24