Skip to content Skip to sidebar Skip to footer

Python Modules Not Found In Virtualenv

I can't get modules to run in my virtual environment. Using pandas as an example: With the virtual env on I run yolk -l and get back (shortened version): (basicpython)xxxx@LinuxBox

Solution 1:

From what I understand, there are 2 issues here:

  1. Yolk is not installed in your virtualenv. Since it is picking up yolk from the global modules you are getting a list of all global packages. For information about this problem check this question: virtualenv yolk problem

  2. Pandas module also doesnt seem to be installed in your virtualenv (I am guessing you used the default virtualenv creation which does not use any site packages). A quick way to check this is pip freeze. You should go ahead and install pandas in your virtualenv (pip install pandas) and then see if the same behavior occurs.

Post a Comment for "Python Modules Not Found In Virtualenv"