Skip to content Skip to sidebar Skip to footer

Python Theano Undefined Symbol: _zdlpvm Error

I'm trying to execute this code: import matplotlib.pyplot as plt import numpy as np from keras.models import Sequential from keras.layers import Dense x = np.linspace(-3, 3, 1000)

Solution 1:

To fix problem I installed gcc 4.9.3 and added in ~/.theanorc these lines:

[global]cxx = /usr/bin/g++-4.9.3

Solution 2:

As you have installed pre-built theano package in your machine it is expecting certain gcc and dependent libs to be in the machine to make the call. The solution provided in the github link is still valid for you however because you are not building the code, that solution will not work for you because theano is still accessing the preinstalled libs.

Here is what you can try:

  • You must have gcc and g++ higher version which are not compatible to theano so remove the gcc and g++ by uninstalling them using OS commands
  • Remove theano package
  • Install gcc and g++ to 4.9 version as this is most command version
  • Reinstall theano > $ pip3 install theano --user

I believe this help you to get your theano working.

Post a Comment for "Python Theano Undefined Symbol: _zdlpvm Error"