title: Segmentation fault when importing libraries in Python
body: <p>I am trying to import the following libraries in python:</p>
  
  <pre><code>import os, sys, random, glob, argparse, math, gc
  import cv2
  import dlib
  import imutils
  from imutils import face_utils
  import matplotlib
  import matplotlib.pyplot as plt
  from skimage.feature import hog
  from skimage import data, exposure
  import sklearn
  from sklearn import svm, metrics
  import numpy as np
  import pandas as pd
  from bcolz import carray
  from tqdm import tqdm
  from time import sleep
  import datetime as dt
  </code></pre>
  
  <p>All these libraries are installed in a conda environment and working when I import them in a jupyter notebook.
  However, when I try to import them in the terminal or using a script, as soon as I execute:</p>
  
  <pre><code>import matplotlib.pyplot as plt
  </code></pre>
  
  <p>There is a:</p>
  
  <pre><code>Segmentation Fault(core dumped)
  </code></pre>
  
  <p>I wonder why it works in jupyter notebook but not in terminal</p>