【发布时间】:2016-01-11 16:06:31
【问题描述】:
我一直将setup.py 用于gspread 之类的软件包,但没有找到setup.py 的详细信息。在我 PC 上的默认 Python 安装上完成后一切正常。
现在我想在 GAE 项目中使用 gspread。它需要“vendorizing”,类似于安装到我的应用程序目录中的lib 文件夹中。如何使用setup.py 指定?
我尝试使用home scheme 并运行:
c:\Python27\python setup.py install --home="D:\Documents\Google Cloud\myapp"
但它说:
running install
Checking .pth file support in D:\Documents\Google Cloud\myapp\lib\python\
c:\Python27\pythonw.exe -E -c pass
TEST FAILED: D:\Documents\Google Cloud\myapp\lib\python\ does NOT support .pth files
error: bad install directory or PYTHONPATH
You are attempting to install a package to a directory that is not
on PYTHONPATH and which Python does not read ".pth" files from. The
installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
D:\Documents\Google Cloud\myapp\lib\python\
and your PYTHONPATH environment variable currently contains:
''
【问题讨论】: