Twisted
I want to write code using Twisted but when I enter lines such as:-
from twisted.internet.protocol import Factory
PyCharm does not recognise the words twisted or Factory (it underlines them with a wavey red line)
I have tried installing the Twisted package > File|settings|project interpreters|Python interpreters|install but it fails with the message
twisted/runner/portmap.c:10:20: fatal error: Python.h: No such file or directory
Can anyone point me in the right direction? I'm running Ubuntu 12.4 and PyCharm 3.0.1
from twisted.internet.protocol import Factory
PyCharm does not recognise the words twisted or Factory (it underlines them with a wavey red line)
I have tried installing the Twisted package > File|settings|project interpreters|Python interpreters|install but it fails with the message
twisted/runner/portmap.c:10:20: fatal error: Python.h: No such file or directory
Can anyone point me in the right direction? I'm running Ubuntu 12.4 and PyCharm 3.0.1
1 comment
Sort by
Date
Votes
Probably you haven't intalled Python development packages for Ubuntu. Try 'sudo apt-get install python2.7-dev' from the commmand line.
Please sign in to leave a comment.