django - Windows Python Virtualenv Install PIL and MySQL -
in windows i'm having trouble installing things such pil , mysql inside virtualenv python 2.7 64-bit. i've downloaded extensions here: http://www.lfd.uci.edu/~gohlke/pythonlibs/ , installed them globally.
but how can them apply virtualenv installation? if re-installation of virtualenv project, inherit installed pil , mysql?
my main error when pip installed: error: unable find vcvarsall.bat i've read need visual studio compile such things, , i'm hoping isn't way things working.
create environment --system-site-packages
option. once in virtual environment, if try import package isn't installed, try find in global site packages , if can't find there raise importerror
.
this far simplest way trying on windows - short of creating own build environment - can tell experience isn't guaranteed work.
if go approach, make sure still add package (and ideally pin it) in requirements.txt
file. way if deploy on environment, not miss dependencies.
Comments
Post a Comment