PackageNotFoundError:当前频道中缺少的包:

时间:2017-12-07 16:28:03

标签: python pysftp

由于云下载的公司政策,我无法从Anaconda云下载软件包。因此,我尝试了从Anaconda的网站下载bioconda pysftp-0.2.9-py36_0.tar win64版本的解决方法,而不是在网络上并将其放在我的闪存驱动器上。但是,我仍然得到一个无法找到的包错误。当我运行安装代码时,我在tar文件所在的目录中。

此代码抛出以下错误:

$ conda install pysftp-0.2.9-py36_0.tar 


Fetching package metadata .............

PackageNotFoundError: Packages missing in current channels:

  - pysftp-0.2.9-py36_0.tar

We have searched for the packages in the following channels:

  - https://repo.continuum.io/pkgs/main/win-64
  - https://repo.continuum.io/pkgs/main/noarch
  - https://repo.continuum.io/pkgs/free/win-64
  - https://repo.continuum.io/pkgs/free/noarch
  - https://repo.continuum.io/pkgs/r/win-64
  - https://repo.continuum.io/pkgs/r/noarch
  - https://repo.continuum.io/pkgs/pro/win-64
  - https://repo.continuum.io/pkgs/pro/noarch

  Need help installing the package locally.
-->

1 个答案:

答案 0 :(得分:0)

您正在寻找对您的命令进行轻微调整:

conda install --use-local pysftp-0.2.9-py36_0.tar

此外,您需要将下载的文件放入

~/anaconda/conda-bld/<platform>

或类似的东西或指定文件的绝对路径。

我在工作中遇到同样的问题。就我而言,他们设置了一些代理服务器,我可以在运行HTTP_PROXYHTTPS_PROXY之前将环境变量conda install <x>pip install <x>指向旁路问题。你有类似的东西吗?