[Python] ImportError: No module named 'twitter'

Discussão em 'Python' iniciado por Stack, Fevereiro 18, 2025.

  1. Stack

    Stack Membro Participativo

    I'm trying to install an external package - twitter 1.14.3 (on Windows 7).

    So I downloaded the package to c:\python33\twitter-1.14.3,

    Then I run:

    python.exe c:\python33\twitter-1.14.3\setup.py install

    Finished processing..


    Now I'm trying to use that new module:

    from twitter import *


    and I get an error:

    Traceback (most recent call last):
    File "test1.py", line 1, in <module>
    \ufefffrom twitter import *
    ImportError: No module named 'twitter'


    When I'm trying to run the twitter.exe, I get:

    c:\Python33\Scripts>twitter.exe
    Traceback (most recent call last):
    File "c:\Python33\Scripts\twitter-script.py", line 9, in <module>
    load_entry_point('twitter==1.14.3', 'console_scripts', 'twitter')()
    File "c:\Python33\lib\site-packages\setuptools-5.4.1-py3.3.egg\pkg_resources.py", line 356, in load_entry_point
    File "c:\Python33\lib\site-packages\setuptools-5.4.1-py3.3.egg\pkg_resources.py", line 2476, in load_entry_point
    File "c:\Python33\lib\site-packages\setuptools-5.4.1-py3.3.egg\pkg_resources.py", line 2190, in load
    ImportError: No module named 'twitter'


    What is the problem?

    Continue reading...

Compartilhe esta Página