What's the difference between anaconda2/Lib/site-packages/<pkg> and anaconda2/pkgs/<pkg>?

夙愿已清 提交于 2019-12-11 03:27:33

问题


I have the latest anaconda2 installed. I found the same packages exist in both anaconda2/Lib/site-packages/<pkg> and anaconda2/pkgs/<pkg>. What are the differences and the pkgs under which one are called in python?


回答1:


The packages in the Anaconda2/Lib/site-packages folder is where Python looks to import packages. The packages in the Anaconda2/pkgs folder are the packages that are downloaded and extracted by Conda when you specify an update or install. Depending on your settings, the folders in Anaconda2/Lib/site-packages may be symlinks or hardlinks to the equivalent folder in Anaconda2/pkgs, or it might be a copy. See the documentation: https://conda.io/docs/user-guide/configuration/use-condarc.html?highlight=symlink#disallow-soft-linking-allow-softlinks



来源:https://stackoverflow.com/questions/46712259/whats-the-difference-between-anaconda2-lib-site-packages-pkg-and-anaconda2-pk

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