Code Monkey home page Code Monkey logo

Comments (4)

cnuernber avatar cnuernber commented on July 19, 2024

I would love to figure this out. Environments are the hardest thing about something like this and automagically finding the python to use would be fantastic.

I don't know the best way, however, to find the first libpython shared library on your path.

The one way might be to somehow ask the linker what library would be loaded:

I don't know an automated way to do this; I think most of those systems just reset $PATH.

from libpython-clj.

cnuernber avatar cnuernber commented on July 19, 2024

Related to #2.

from libpython-clj.

cnuernber avatar cnuernber commented on July 19, 2024

On ubuntu, ldconfig -p prints out the shared libraries available:

chrisn@chrisn-lt-2:~$ ldconfig -p | grep python
        libpython3.7m.so.1.0 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libpython3.7m.so.1.0
        libpython3.7m.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libpython3.7m.so
        libpython3.6m.so.1.0 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0
        libpython3.6m.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libpython3.6m.so
        libpython2.7.so.1.0 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0
        libpython2.7.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libpython2.7.so
        libpyglib-2.0-python2.7.so.0 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libpyglib-2.0-python2.7.so.0
        libboost_python3-py36.so.1.65.1 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libboost_python3-py36.so.1.65.1
        libboost_python3-py36.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libboost_python3-py36.so
        libboost_python-py27.so.1.65.1 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libboost_python-py27.so.1.65.1
        libboost_python-py27.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libboost_python-py27.so

from libpython-clj.

cnuernber avatar cnuernber commented on July 19, 2024

Closing for now as this issue has stalled. The best solution we have for now is to use docker to control the host environment.

from libpython-clj.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.