Install Tornado on Windows 7

Please see my prior post on how to Setup virtualenv on Windows.

Open PowerShell, then enter the following commands:

cd C:\Python27

.\env_tornado\Scripts\activate.bat

.\Scripts\easy_install.exe pip

pip.exe install tornado -E .\env_tornado

 

If you want to install in the global site packages, then skip pip above and use:

.\Scripts\easy_install.exe tornado

That’s it. Time to start writing code.

Responses

  1. nima Avatar

    Great, thanks

  2. Alex Rattray Avatar

    It says on the home page that tornado only supports unix…. Have you found this not to be true?

    1. akbarsahmed Avatar

      Tornado’s only dependency is the Python standard library, so I was able to install/run it on Windows. That said, I have not developed much on Tornado, this was just a quick install as I wanted to play with it. So, there may or may not be limited functionality on Windows. Also, I primarily develop on Linux and I don’t recall if this was a smoke test to see if our Windows devs could install/use Tornado, or if I ran any sample apps. Sorry for being vague, but I really don’t recall.

      I know there used to be an issue with Tornado’s use of ‘fcntl’ (this is Unix only, and I don’t know if FB has removed this dependency). Also, the prior dependency on ‘pycurl’ is now optional.

      1. Alex Rattray Avatar

        Awesome, thanks for the helpful reply! I’ll try to follow up here if I experiment further myself.

  3. jec Avatar

    Hi,

    Does this “trick” works with windows XP ?

    1. akbarsahmed Avatar

      I don’t know. If you try it, let me know if it works.

      1. jec Avatar

        Okay, then, I sucessfully installed tornado on Win XP and it seems to be working altrough I didn’t tested it yet.

      2. jec Avatar

        Okay, I tested it and it works (post requests and getting arguments)

        Nice, thanks you 🙂

  4. Charles Crous Avatar

    Thank You! This helped me, so just in case this can help someone else…

    I havee Windows 7 asmy OS and got an error: “ImportError: no module named tornado” when I tried running >ipython notebook

    All I had to do is tweak the working directory:
    >cd C:\Miniconda
    >.\Scripts\easy_install.exe tornado

Leave a Reply