|
|
#1 |
|
Member
![]() Posts: 11
Karma: 10
Join Date: Apr 2021
Device: KPW4
|
How to setup python-webkitgtk and numpy environment in kindle?
How can I set up the environment so I can test and write some apps in kindle?
|
|
|
|
|
|
#2 |
|
Enthusiast
![]() Posts: 43
Karma: 10
Join Date: Mar 2021
Device: KPW 4 and KT2
|
I tried to install pip on kindle with python3.9, however it seems that HOME variables are very hard to add because everytime I restart kterm I need to do it again, typing those longlong commands.
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
I've never done that on Kindle, but I see no reason why this wouldn't behave, as the builds are essentially identical:
Code:
139 │ # NOTE: Document pip usage... (*NOT* recommended!)
140 │ if [ "${COMPILE_PY3}" = "true" ] ; then
141 │ # NOTE: Technically available on Python 2.7, too, but let's not encourage that...
142 │ echo ""
143 │ echo "If you *absolutely* need to, pip can be bootstrapped and updated."
144 │ echo "This is *NOT* recommended, as it will only be able to install pure-python modules (as there is no available C/C++ compiler)."
145 │ echo "In addition to that, any extra third-party modules will be *lost* during a Python update!"
146 │ echo "As for the user site-packages, remember that by default HOME is either in a tmpfs, or, worse, the rootfs..."
147 │ echo "TL;DR: Don't do this unless you *know* what you're doing!"
148 │ echo ""
149 │ echo "That said..."
150 │ echo "Boostrapping pip:"
151 │ echo "python${PY3VER} -m ensurepip"
152 │ echo "Updating pip:"
153 │ echo "${PY3HOME}/bin/pip${PY3VER} install -U setuptools pip"
154 │ echo "Symlinking pip into PATH"
155 │ echo "ln -sf ${PY3HOME}/bin/pip /usr/bin/pip"
156 │ echo ""
157 │ fi
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Python 3.9 Numpy | DennisH | Kindle Developer's Corner | 2 | 04-07-2021 05:11 AM |
| Is the environment Python 2 or Python 3? | halloleo | Library Management | 11 | 04-07-2020 04:47 AM |
| How to setup Python debug environment for Calibre Recipes | huang5307 | Recipes | 9 | 03-03-2016 03:35 PM |
| OSX Python environment | DiapDealer | Development | 1 | 08-04-2014 12:10 AM |
| setup development environment | JeffElkins | Calibre | 21 | 10-22-2008 04:25 PM |