Code Monkey home page Code Monkey logo

Comments (7)

Juze1500 avatar Juze1500 commented on May 23, 2024 54

Hello! Try export LD_LIBRARY_PATH=/path/to/libpython/directory before executing your python script. If you are using Conda, the path should be /path/to/conda/envs/your_env/lib.

from acme.

wookayin avatar wookayin commented on May 23, 2024 11

Recommend putting the export LD_LIBRARY_PATH=.. into $CONDA_PREFIX/etc/conda/activate.d/env.sh, so that this environment variable set whenever the conda environment is activated.

You can do this with a one line command:

echo "export LD_LIBRARY_PATH=$CONDA_PREFIX/lib:\$LD_LIBRARY_PATH" > $CONDA_PREFIX/etc/conda/activate.d/env.sh

from acme.

gattia avatar gattia commented on May 23, 2024 1

For anyone looking how to deactivate what I did is posted here: opensim-org/opensim-core#2968 (comment)

I still am not sure if there is anything that can be done to add/remove from path when the base conda is used.

from acme.

alejandroarmas avatar alejandroarmas commented on May 23, 2024

@Juze1500 Thank you! I had done that many times before and it didn't work out. Turns out I had installed an outdated python version for my anaconda environment. After getting that figured out I got the same problem but changing my LD_LIBRARY_PATH variable fixed it. Appreciate the help man!

from acme.

jasonmeverett avatar jasonmeverett commented on May 23, 2024

Hello! Try export LD_LIBRARY_PATH=/path/to/libpython/directory before executing your python script. If you are using Conda, the path should be /path/to/conda/envs/your_env/lib.

This worked for me. Thanks!

from acme.

gattia avatar gattia commented on May 23, 2024

@wookayin do you know how this same principle could be used to remove $CONDA_PREFIX/lib from LD_LIBRARY_PATH if the environment is deactivated? Or if you are using the base conda environment?

Thanks!

from acme.

saltfishh avatar saltfishh commented on May 23, 2024

Hello! Try export LD_LIBRARY_PATH=/path/to/libpython/directory before executing your python script. If you are using Conda, the path should be /path/to/conda/envs/your_env/lib.

thanks, it helps me!

from acme.

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.