Skip to content

Latest commit

 

History

History
51 lines (37 loc) · 1.8 KB

tweepy.md

File metadata and controls

51 lines (37 loc) · 1.8 KB

Tweepy

Tweepy is a Python library for accessing the twitter API. It is installed via the conda package managment system using the conda-forge package index.

Install Tweepy

  1. Open a windows or OS/X terminal
  2. Type the following into the terminal:
conda install tweepy -c conda-forge -y

The terminal should print something like the following:

Fetching package metadata .............
Solving package specifications: .

Package plan for installation in environment /Users/hannah/miniconda3/envs/installenv:

The following NEW packages will be INSTALLED:

    asn1crypto:        0.24.0-py36_0                 conda-forge
    blinker:           1.4-py_0                      conda-forge
    cffi:              1.11.5-py36_0                 conda-forge

        .... omitted text ....

oauthlib-2.1.0 100% |########################################################| Time: 0:00:00   1.06 MB/s

Test Tweepy install

While still in the terminal, launch the Python interpreter by typing Python. You should then see something like:

Python 3.6.5 |Anaconda, Inc.| (default, Apr 26 2018, 08:42:37) 
[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> 

Then try to load tweepy by typing import tweepy If everything has installed correctly, you will then see a blank line starting with >>> underneath, as shown below.

Python 3.6.5 |Anaconda, Inc.| (default, Apr 26 2018, 08:42:37) 
[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import tweepy
>>> 

If the installation failed, the terminal will print an error.