簡體   English   中英

Python安裝的Dropbox SDK失敗

[英]Python Install of Dropbox SDK Fails

我和這里有同樣的問題。

Windows 7上的Dropbox Python SDK安裝錯誤(無法創建“構建”)

用戶沒有說他們如何解決該問題(我嘗試再次開始並重新安裝Python)。 我要求用戶詳細說明,我的帖子被刪除了,因為我沒有回答問題。 抱歉,我是新來的。 但是重新發布對我來說似乎很不直觀。

開始...

我安裝了Python 2.7,然后下載並嘗試運行Dropbox Python SDK的setup.py。

它要求我添加setuptools,所以我這樣做了,然后嘗試從CMD安裝Dropbox setup.py。 之后我得到以下...

C:\Python27\dropbox-python-sdk-1.5.1>setup.py install
running install
running bdist_egg
running egg_info
writing dropbox_python_sdk.egg-info\PKG-INFO
writing top-level names to dropbox_python_sdk.egg-info\top_level.txt
writing dependency_links to dropbox_python_sdk.egg-info\dependency_links.txt
reading manifest file 'dropbox_python_sdk.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'dropbox_python_sdk.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_py
creating build
error: could not create 'build': Cannot create a file when that file already exists

C:\Python27\dropbox-python-sdk-1.5.1>

我做錯了什么? 我知道它尚未安裝,因為Dropbox模塊不存在。

如果有幫助,我正在使用Windows Server 2008 64位。

根據piokuc的評論回答。 他/她(相當長一段時間)未標記答案,因此我將其留在此處以供其他人查找。

“刪除您抱怨的構建目錄。– piokuc”

我發現嘗試在沒有“輕松安裝”的情況下嘗試安裝Dropbox python模塊會失敗,從而使Dropbox模塊的安裝完成了一半。 只需刪除有問題的文件,然后重新開始。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM