python安装dill_如何在IPython中安装dill?

1586010002-jmsa.png

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:\\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.

解决方案

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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值