本文介绍了anaconda2/Lib/site-packages/< pkg>和和anaconda2/pkgs/< pkg&gt ;?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了最新的anaconda2.我发现anaconda2/Lib/site-packages/<pkg>anaconda2/pkgs/<pkg>中都存在相同的软件包.

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?

推荐答案

Anaconda2/Lib/site-packages文件夹中的软件包是Python用来导入软件包的位置. Anaconda2/pkgs文件夹中的软件包是Conda在指定更新或安装时下载并提取的软件包.根据您的设置,Anaconda2/Lib/site-packages中的文件夹可以是与Anaconda2/pkgs中等效文件夹的符号链接或硬链接,也可以是副本.请参阅文档: https://conda.io/docs/user-guide/configuration/use-condarc.html?highlight=symlink#disallow-soft-linking-allow-softlinks

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

这篇关于anaconda2/Lib/site-packages/&lt; pkg&gt;和和anaconda2/pkgs/&lt; pkg&gt ;?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-13 00:41