I have a classifier (and vectorizer) that I can export as a pickled model. I am using Python.

This is on my local machine. Now, in order to perform the classifications in "production" I need to be able to run this in another machine that does not have Python installed. Any idea how to do this? Is it possible to create a Python executable with the pickled model in it?


1 Answer 1


The simplest thing to do is to get Python installed properly on your production system. If you aren't able to do this for whatever reason, you can still run Python without installing it, but it's a bit more work to get everything to work properly, particularly if you don't have Administrator privileges.

If you truly can't install Python, your best bet would probably be to use something like py2exe to build a self-contained version of your application that includes a Python interpreter and required libraries.

  • $\begingroup$ This is about as good as it is going to get. The premise of the question is kind of funny, considering the pickled model is a Python object. "I want to do something with a Python object but uh, can't have Python." $\endgroup$
    – CalZ
    Commented Apr 4, 2017 at 11:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.