Skip to content

Instantly share code, notes, and snippets.

@YoomamaFTW
Last active August 3, 2019 17:53
Show Gist options
  • Save YoomamaFTW/1df3b7e1aad1bfc1447dfc437236f927 to your computer and use it in GitHub Desktop.
Save YoomamaFTW/1df3b7e1aad1bfc1447dfc437236f927 to your computer and use it in GitHub Desktop.
How to install Twisted python package for Windows PCs
"""
First go here:
https://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted
Download your preferred package based off your Python version by clicking on the name wanted. I HIGHLY recommend the 32-bit. (When installing with the 64-bit AMD version, I received an error saying the package was not supported).
Find where the package was downloaded. Usually, it's in C:\Users\(username)\Downloads
If this is your path:
"""
path = 'C:\Users\(username)\Downloads'
"""
Then do the following in your virtual environment (I downloaded this file with a Python version of 3.7.2: Twisted-19.2.1-cp37-cp37m-win32.whl):
pip install C:\Users\(username)\Downloads\Twisted-19.2.1-cp37-cp37m-win32.whl
If your username is YoomamaFTW, then it would look like this:
pip install C:\Users\YoomamaFTW\Downloads\Twisted-19.2.1-cp37-cp37m-win32.whl
"""
# Note: It can be case-insensitive or no uppercases because of Windows not being able to tell the difference between cases in file paths.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment