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
#1
Hello!
I installed kivy and cython from source like this:

git clone https://github.com/kivy/kivy.git
cd kivy
make

same for cython.
I installed packages to
/home/lasse/.local/lib/python2.7/site-packages/

There are four directories at /home/lasse/.local/lib/python2.7/site-packages/
they are kivy, cython, numpy and numpy-1.14.0.dist-info

I installed numpy with pip and I can import it anywhere.
kivy and cython imports work only in their directories, not elsewhere.

I have tried adding .bashrc this:
PYTHONPATH="${PYTHONPATH}:/home/lasse/.local/lib/python2.7/site-packages/kivy:/home/lasse/.local/lib/python2.7/site-packages/cython"
export PYTHONPATH

It does not work.

I also tried this:
import sys
sys.path.append('/home/lasse/.local/lib/python2.7/site-packages/cython')
It works, but it does not solve the problem.

Appreciate help
Reply


Messages In This Thread
Installing from source and getting import working in linux - by poutila - Jan-16-2018, 04:55 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  import pandas as pd not working in pclinuxos loren41 3 2,910 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