We Want to Hear From You! What Do You Want to See on the Community? Tell us here!

Forum Discussion

ChrisAPI's avatar
ChrisAPI
New member | Level 1
10 years ago

How to install Drobox SDK for Python in Windows 7?

Hi, I am trying to install Dropbox SDK for Python through this page: https://www.dropbox.com/developers/core/sdks/python

I have downloaded Dropbox SDK for Python and uncompressed it at my Desktop folder. Currently I use Python SDK 2.7.9 (which includes pip) on my Windows 7 computer, but the next step says,

"To install the dropbox module and any dependencies, run the setup script (you may need sudo).

$ python setup.py install"

Here's my problem. I tried to use python command line and Python GUI from Python SDK 2.7.9 and entered the command above. It didn't work. I also doubled clicked the setup.py file and comand prompt opened and closed quickly. I am not sure  if this is right way :S

Does anyone knows how it works in Windows 7?

7 Replies

Replies have been turned off for this discussion
  • Did you try "python setup.py install"? If so, what happened?

    Also, you mentioned you have pip, so you can just run "pip install dropbox" as it says in the next paragraph on that page.

  • ChrisAPI's avatar
    ChrisAPI
    New member | Level 1
    10 years ago

    When I open python (command line), type "python setup.py install"and press Enter, it says the following text:

    SyntaxError: Invalaid syntax
    >>> pip install dropbox
     File "<stdin>", line 1
        python setup.py install

    When I open command prompt from Windows in C:// and type "python setup.py install", it says the following:
    "Python is not recognized as an internal or external command, operable program or batch file."

     

  • It sounds like you don't have the Python executable in your path then? That would be the first thing to fix. Once typing "python" actually succeeds, rather than saying "python is not recognized..." you're ready to try installing the Dropbox SDK.

  • Jasmina V.1's avatar
    Jasmina V.1
    New member | Level 1
    10 years ago

    I have installed python 2.7.11 in  my windows 8.1 . i want to install dropbox for my python.

    My question is that where i have to write 

    python setup.py install -this command? on command prompt?and if yes in which folder?

    Or should i have to follow this command?- pip install dropbox
    And same where i have to write it?

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    10 years ago

    Using pip to install the Dropbox library is recommended. The official instructions are here:

    https://www.dropbox.com/developers/documentation/python#install

    The "pip install dropbox" command would be run in your command prompt, but you need to have pip installed. The installation instructions for pip itself can be found here:

    https://pip.pypa.io/en/stable/installing/

    Note that pip is made by a third party though, so we can't support pip itself.

    Alternatively, instead of using pip, you should be able to download the library itself and install the library by using the setup.py file included with the library, using the command you mentioned in your command prompt:

    python setup.py install

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,034 PostsLatest Activity: 3 hours ago
409 Following

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!