Python Forum
Installing from source and getting import working in linux
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Installing from source and getting import working in linux
#5
sudo apt-get install cython
pip install numpy
or you could do
sudo apt-get install python-numpy
then download and setup buildozer (which is kivy's app for installing itself and dependencies and allows easy changes when creating APK files)
git clone https://github.com/kivy/buildozer
cd buildozer
sudo python setup.py install
EDIT:
Quote:apparently they now buidozer doesnt download the NDK for you, they want you to download it from
https://www.crystax.net/en/download
and extract it, and change the spec file to its directory path.
# Point to the directory where you extracted the crystax-ndk:
android.ndk_path = <Your install path here. Use ~ for home DIR>

go into your app directory and execute
buildozer init
buildozer android debug deploy run
the first time will take a long time as its installing SDK, NDK, etc. You can add --verbose arg to see what is going on. But every other time after that will be quick.

To test on PC, download for your architecture and OS.
https://kivy.org/#download
and then
sudo python setup.py install
python [SCRIPTNAME]
Recommended Tutorials:
Reply


Messages In This Thread
RE: Installing from source and getting import working in linux - by metulburr - Jan-16-2018, 06:35 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  import pandas as pd not working in pclinuxos loren41 3 2,354 May-19-2019, 03:49 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020