title: "Fontconfig error: Cannot load default config file" on Ubuntu 16.04
body: <p>I'm using python 2.7 on Anaconda, on Ubuntu 16.04, installed in a virtual machine with VMware Player on Windows 10.</p>
  
  <p>When running the following code, I get the following error:</p>
  
  <pre><code>&gt;&gt;&gt; import networkx as nx
  &gt;&gt;&gt; G = nx.complete_graph(4)
  &gt;&gt;&gt; pos = nx.nx_pydot.graphviz_layout(G)
  Fontconfig error: Cannot load default config file
  </code></pre>
  
  <p>I have tried setting the path as suggested <a href="https://askubuntu.com/questions/492033/fontconfig-error-cannot-load-default-config-file">here</a>, both in the root and on the conda environment, I have tried to reinstall fontconfig both in the root and on the conda environment, and I have also tried the answer suggested <a href="https://stackoverflow.com/questions/21100787/centos-and-fontconfig-cannot-load-default-config-file">here</a>, and I have exited the console, and restart the machine several times, and I still get the same error.</p>
  
  <p>I will very much appreciate any help to solve this problem.</p>