I'm new to python and I'm writing a simple TCP server Server.py
, and I'm trying to import the reactor using this line of code
from twisted.internet import reactor
The problem is when I run the code I get this error
/Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5 /Users/Nora/PycharmProjects/Server/Server.py
Traceback (most recent call last):
File "/Users/Nora/PycharmProjects/Server/Server.py", line 2, in <module>
from twisted.internet import reactor
ImportError: No module named 'twisted'
Note that I am using OS X Yosemite, and I have installed a new python version 3.5, how can I go back to the system built in version which already has twisted?