Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在一台机器上运行 Fedora 32 位,并使用 easy_install 安装了几个鸡蛋。
我在 64 位 centos 5 机器上使用 easy_install 安装了相同的鸡蛋。site-packages 目录是不同的——在我的 Fedora 机器上,一些鸡蛋已经膨胀,所以有以 .egg-info 结尾的目录以及主要代码目录。在 Centos 上没有 .egg-info 目录。为什么是这样?
谢谢
一个包可以使用它的 setup.py 文件中的 zip_safe 标志来指定它自己是否应该被取消归档。此外,像'easy_install' 这样的大多数安装程序都提供了显式控制解包的选项(例如easy_install --zip-ok ...)...所以它可能取决于在Fedora 或CentOS 下如何安装包。