How to install dill in IPython?

2019-04-11 12:20发布

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

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

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

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.

2条回答
萌系小妹纸
2楼-- · 2019-04-11 13:14

If conda doesn't install it, it just means that it's not yet in the Continuum Anaconda repository. You can just do pip install dill, and that should work fine with Anaconda.

If pip isn't working for you, I have gone ahead and created a conda package for dill and uploaded it to my http://binstar.org channel. You can install via:

conda install -c pwang dill

查看更多
Explosion°爆炸
3楼-- · 2019-04-11 13:16

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.

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

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

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

查看更多
登录 后发表回答