title: Pyinstaller does not look for the file inside the Python Virtual Environment
body: <p>I want to convert Python code into standalone executable , the code uses numpy, scipy, and Pymc3 modules. I am using Python 3.6.4. I have created the project using Virtual Environment in Pycharm IDE. The command that I used to run pyinstaller is as follows:</p>
  
  <pre><code>venv/Scripts/pyinstaller --onefile src/POD.py
  </code></pre>
  
  <p>venv being the folder where virtual environment is stored and src being the folder where my Python source code ie. POD.py is saved. Pyinstaller runs just fine generates some warning message, but when I try to run the executable generated by pyinstaller it thrown as error </p>
  
  <pre><code>   Traceback (most recent call last):
    File "POD.py", line 196, in &lt;module&gt;
    File "POD.py", line 79, in train
    File "Lib\site-packages\theano\tensor\var.py", line 155, in __mul__
    File "Lib\site-packages\theano\gof\op.py", line 615, in __call__
    File "Lib\site-packages\theano\tensor\elemwise.py", line 482, in make_node
    File "Lib\site-packages\theano\tensor\elemwise.py", line 438, in      get_output_info
    File "Lib\site-packages\theano\tensor\elemwise.py", line 157, in __init__
    File "Lib\site-packages\theano\gof\op.py", line 1308, in __init__
    File "Lib\site-packages\theano\gof\op.py", line 1331, in load_c_code
  FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\User\\AppData\\Local\\Temp\\_MEI126642\\theano\\tensor\\c_code\\dimshuffle.c'
  [4756] Failed to execute script POD
  </code></pre>
  
  <p>Seems like it is trying to find the file dimshuffle.c outside of the virtual environment. In-fact the I can see that there is folder inside virtual environment which has the dim_shuffle.c code. I can find it inside virtual environment in following folder. </p>
  
  <pre><code>venv/Lib/site-packages/theano/tensor/c_code/dimshuffle,c
  </code></pre>
  
  <p>My question is how do I instruct pyinstaller to look for dimshuffle inside virtual environment folder?</p>