I had the same problem with the mpmath module and fixed as follows: First, I got the path the module was in:
%python3 >>>import mpmath >>>print(mpmath.__file__) /usr/lib/python3.4/site-packages/mpmath/__init__.py
Here I found a path for all my "installed" python3 packages:
/usr/lib/python3.4/site-packages/
Then I just added this path to my PYTHONPATH environment variable:
%export PYTHONPATH=/usr/lib/python3.4/site-packages/
Then, when I used vim sample.py , typing import mpmath and after using mpmath. YCM showed me all the auto-complete for the mpmath module.
Hope this helps.
source share