Do OS X upgrades install packages that shadow packages I'm maintaining with pip?

不羁岁月 提交于 2020-01-14 05:36:05

问题


After upgrading to Mavericks (OS 10.9), I found that the locations that Apple's Python (2.7.5) was using for many packages I had installed earlier had changed,1 and that several had been "downgraded" to older versions. Confusingly, I found that updating these older versions (using pip which I use to maintain my packages) was prevented by the presence of unused but current versions these packages,2 and that deleting the new (but older) versions that Mavericks had installed was necessary.

What's going on here? Did Mavericks just come with some commonly used packages (like mathplotlib) that it put in the .../Extras/... folder where they shadow versions I had been maintaining in .../site-packages/? Using pip seems to have fixed this problem, effectively clearing out .../Extras/... of (often slightly old) duplicates of my packages in .../site-packages/, but I want to confirm that I'm doing the right thing, especially since this seems to happen every time Apple updates Python.

1: To /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python
2: Still present and undisturbed in /Library/Python/2.7/site-packages/

来源:https://stackoverflow.com/questions/19548662/do-os-x-upgrades-install-packages-that-shadow-packages-im-maintaining-with-pip

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!