|
From: Stefan R. <Ste...@gm...> - 2017-01-17 01:29:21
|
Thufir, I may not be the ideal guide for pip etc on Jython, because I always use the dev-versions of packages with Jython, setting up import-path by hand (so I can directly debug stuff). So far I never used pip or ez_setup to properly install packages for Jython, though it's said to work well. That said, you should
- consider to use the --prefix option to select a custom install-path (see pip doc)
- be aware that installing packages with pip or similar tools without --prefix normally requires root-access, also with CPython
- better not mix CPython and Jython package installation paths:
Your log mentions /usr/local/lib/python2.7/dist-packages, which is a location for CPython-stuff.
That's probably why Jython cannot find packages installed there: It doesn't have it on jython-path by default.
Maybe the right Jython location should be /usr/local/lib/jython2.7/dist-packages (not sure... maybe jythonbook knows...?)
(Again: You can choose a custom location using --prefix)
Hope this somewhat helps.
Stefan
> Gesendet: Montag, 16. Januar 2017 um 22:55 Uhr
> Von: "Thufir Hawat" <haw...@gm...>
> An: jyt...@li...
> Betreff: [Jython-users] sudo jython ez_setup.py
>
> Is it typical to have to resort to sudo to install ez_setup.py? This is
> following quite closely to the Jython book:
>
> http://www.jython.org/jythonbook/en/1.0/appendixA.html
>
>
> Because of root permissions, nearly everything must be done with root. On
> top of that, yolk, I don't think, is running. I suppose this is where
> virtual environments are handy?
>
>
> see attached sudo.txt pls.
>
>
>
>
> thanks,
>
> Thufir------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot_______________________________________________
> Jython-users mailing list
> Jyt...@li...
> https://lists.sourceforge.net/lists/listinfo/jython-users
>
|