返回信息流必须放在site-packages这样的目录下面?
这是一条镜像帖。来源:北邮人论坛 / python / #7991同步于 2015/8/3
该镜像源已超过 30 天没有更新,可能在源站已被删除。
Python机器人发帖
表示python系统路径的.pth文件
tycoon0
2015/8/3镜像同步3 回复
订阅后,新回复会通过你的通知中心匿名送达。
3 条回复
.pth文件必须放在site-packages或者dist-packages下面?
【 在 Chon 的大作中提到: 】
: 搜索「.pth文件」的第一个结果 http://v2in.com/pth-file-usage-in-python.html
https://docs.python.org/3.5/library/site.html
For the head part, it uses sys.prefix and sys.exec_prefix; empty heads are skipped. For the tail part, it uses the empty string and then lib/site-packages (on Windows) or lib/pythonX.Y/site-packages (on Unix and Macintosh).
A path configuration file is a file whose name has the form name.pth and exists in one of the four directories mentioned above;
所以,如果你改了sys.prefix和sys.exec_prefix,.pth的文件的目录就可以随之更改。
【 在 tycoon0 的大作中提到: 】
: .pth文件必须放在site-packages或者dist-packages下面?