Skip to main content
 首页 » 编程设计

python之在 webfaction 上安装 dropboxpython api(带 ssl)时遇到问题

2025年05月04日14me-sa

我开发了一个使用 Dropbox API 的 Django 应用程序。在我的 Windows 开发环境中,它使用 python 2.7 完美运行。我尝试将它部署到我最初使用 python 2.5 设置的站点(由 webfaction 托管)。如果我尝试运行

python2.5 setup.py install

从 dropbox-1.3 api 目录我得到这个错误:

The package setup script has attempted to modify files on your system that are not within the EasyInstall build area, and has been aborted.

This package cannot be safely installed by EasyInstall, and may not support alternate installation locations even if you run its setup script by hand. Please inform the package's author and the EasyInstall maintainers to find out if a fix or workaround is available.

这似乎发生在它尝试处理依赖项并尝试安装“ssl”之后。我不确定如何解决这个问题?

请您参考如下方法:

显然,如果您下载 tarball,解压它,然后在目录中自己运行 setup.py,则安装 SSL 包是有效的。

安装完成后,您应该能够安装 Dropbox 包。

SSL:http://pypi.python.org/pypi/ssl