Problem when opening a program with Python

1

I have a problem when I try to open a program I get this error message:

Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    from twisted.internet import protocol, reactor
ImportError: No module named twisted.internet

Why does it happen and what can I do to solve this problem?

    
asked by ses 28.07.2016 в 23:45
source

2 answers

1

You are trying to execute a code that uses twistedmatrix.

You must install it before you can run the code.

    
answered by 28.07.2016 в 23:59
1

Apparently the module you are trying to open is not available in your path $ PYTHONPATH (or sys.path).

You should check:

  • The module is installed (assuming you use linux you have this link ). In case it is not installed, you can install it using pip.
  • The module is located within the route ( here you can see how do what). In case you are not on the route, you can make a sys.path.append ('path_module')
  • I hope it helps you.

        
    answered by 29.07.2016 в 11:08