tensorflow and torch lib conflicts

Description

Error:

How to reproduce:

On a new VM, open up a python interpreter or notebook, run the two follwing commands:

(doing just import torch on a fresh interpreter works fine, it is the conflict with tensorflow that causes the error).

How to fix:

libstdc++.so.6 is available in /srv/hops/anaconda/anaconda/envs/python36/lib/ and in /srv/hops/anaconda/anaconda/envs/python27/lib/. If you set LD_LIBRARY_PATH to point to the lib folder, then torch/tensorflow will find it, e.g executing:

which means that LD_LIBRARY_PATH is now set to:

and then starting python and importing both tensorflow and torch works fine.

Assignee

Kim Hammar

Reporter

Kim Hammar

Labels

None

Fix versions

Priority

Low
Configure