Skip to content

Instantly share code, notes, and snippets.

@derwolfe
Last active July 7, 2018 10:38
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save derwolfe/434ba30127660781730e to your computer and use it in GitHub Desktop.
Save derwolfe/434ba30127660781730e to your computer and use it in GitHub Desktop.
Installing twisted on windows
  1. install python 2.7.9 from here https://www.python.org/downloads/; if using a different python, then you may need to install pip using get-pip.py
  2. add the directory located at C:\python27\scripts to the end of your path with ;C:\python27\scipts
  3. upgrade pip to ensure that you have a version that supports installing wheels - pip install -U pip
  4. run pip install virtualenv
  5. run virtualenv venv
  6. if using:
    • cmd run .\venv\activate
    • powershell run .\venv\Scripts\activate.ps1. By default, powershell doesn't allow execution of unsigned scripts. This can be turned off by setting the execution policy to a more permissive setting. This can be done with open powershell and typing: Set-ExecutionPolicy Unrestricted. You will then be prompted about whether or not you'd like to really allow this; to accept type Y and hit enter.
    • git bash prompt run source ./venv/Scripts/activate
  7. run pip install twisted
  8. If you'd like access to win32 apis, install pypiwin32, using pip install pypiwin32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment