malramsay64 / experi

An interface for managing computational experiments with many independent variables.
MIT License
4 stars 1 forks source link

Running experi from the command line in a conda environment #62

Open TomNicholas opened 5 years ago

TomNicholas commented 5 years ago

I am working in a python3.6 conda environment, and I try to install experi by navigating to the root directory of experi and running python3 setup.py develop (which is normally the best way on conda I think). This causes experi to show up when I enter conda list, but calling $ experi on the command line returns the error

/cineca/prod/opt/compilers/python/3.6.4/none/bin/python3.6: error while loading shared libraries: libpython3.6m.so.1.0: cannot open shared object file: No such file or directory

This is weird because that's not the version of python that should be being used, because $ which python returns the python3.6 version in my conda environment:

/marconi_work/FUA32_SOL_BOUT/tnichola/anaconda3/envs/py36/bin/python

and $ python3 takes me into the conda python3 as it should.

Is it possible that experi is looking for python in the wrong place? Or is my environment just messed up?

malramsay64 commented 5 years ago

It may just be that your path hasn't updated. I just ran through the installation on a couple of conda environments and on one occasion I was getting the wrong path for experi. which experi should be an executable in the same path as which python. Running hash -r in bash (rehash in zsh) which updates the remembered list of paths fixed the issue for me.

Hopefully that fixes the issue for you.