We Want to Hear From You! What Do You Want to See on the Community? Tell us here!
Forum Discussion
ChrisAPI
10 years agoNew member | Level 1
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
- Steve M.10 years ago
Dropbox Staff
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.
- ChrisAPI10 years agoNew member | Level 1
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 installWhen 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." - Steve M.10 years ago
Dropbox Staff
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.110 years agoNew member | Level 1
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-DB10 years ago
Dropbox Community Moderator
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
- Jasmina V.110 years agoNew member | Level 1
how can i upload images and videos on dropbox using python?
- Greg-DB10 years ago
Dropbox Community Moderator
Once you have the library installed, I recommend working through the tutorial, which covers uploading files:
https://www.dropbox.com/developers/documentation/python#tutorial
If you're still having trouble, open a new thread with the details of the new issue:
https://www.dropboxforum.com/hc/en-us/community/posts/new?community_post%5Btopic_id%5D=200209245
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,034 PostsLatest Activity: 3 hours ago
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!