本文介绍了如何在IPython中安装dill?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一开始,我试过 conda install dill conda 无法在互联网。

Right at the outset, I tried conda install dill, and conda was not able to find it on the internet.

然后我下载了 .tgz .zip 我的默认IPython目录中的文件:

Then I downloaded both .tgz and .zip files in my default IPython directory from here:https://pypi.python.org/pypi/dill

之后我尝试了以下命令:

conda install dill-0.2b1。 zip

conda installC:\< rest_of_the_complete_path> \dill-0.2b1.zip

,同样适用于 .tgz 。所有四次尝试都产生了错误:

找不到匹配的包:

After which I tried the following commands:
conda install dill-0.2b1.zip
conda install "C:\<rest_of_the_complete_path>\dill-0.2b1.zip"
and likewise for .tgz. All four attempts yielded the error:
No packages found matching:

这是什么我做错了?我想重复以下链接中给出的示例:

What is it that I am doing wrong? I am trying to repeat the examples given on the following link:http://nbviewer.ipython.org/gist/minrk/5241793

编辑1:我已安装 dill C:\Python27 )上安装了 dill ,但在我的Anaconda Python上却没有。我假设这两个蟒蛇是分开的,因为我可以导入通常的模块(比如说 numpy ) - 我通过 cmd访问的python 和我通过我的IPython笔记本访问的那个 - 但我只能在我通过 cmd dill / code>而不是我的IPython笔记本。

Edit 1: I had installed dill on my system by running the .exe file from https://pypi.python.org/pypi/dill. This step installed dill on my system python (C:\Python27) but not on my Anaconda Python. I am assuming that these two pythons are separate since I can import the usual modules (say numpy for instance) on both — the python I access through cmd and the one I access through my IPython notebooks — but I can import dill only on the python I accesses through cmd and not in my IPython notebooks.

推荐答案

我阅读了Anaconda快速入门指南(),其中介绍了如何安装Continuum Analytics Repository中未提供的软件包。因此,我去了并搜索了 dill

I read the quick start guide for Anaconda (link) which describes how to install packages not available in the Continuum Analytics Repository. Accordingly I went to binstar.org and searched for dill.

以下版本适用于Windows,其中我下载了文件 win-32 \dill-0.2b1-py27_0.tar.bz2

The following versions were available for Windows, of which I downloaded the file win-32\dill-0.2b1-py27_0.tar.bz2.
https://binstar.org/dhirschfeld/dill/0.2b1/files

然后我去了下载文件的目录并执行了以下命令:

conda install win-32-dill-0.2b1-py27_0.tar.bz2

Then I went to the directory where the file was downloaded and executed the following command:
conda install win-32-dill-0.2b1-py27_0.tar.bz2

我检查了包裹使用命令 conda list 的可用性,现在似乎已经为我的IPython笔记本安装了 dill

I checked the package availability using the command conda list and it seems that dill is now installed for my IPython notebooks.

这篇关于如何在IPython中安装dill?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-20 20:37