怎样在anaconda中安装python包_如何在Anaconda中安装软件包?

I want to add music package to anaconda interpreter.

I'm using ubuntu 14.04 64bit.

I downloaded music21-1.9.3.tar.gz from anaconda cloud.

I unpacked it to anaconda3/pkgs

ext installer.py music21 PKG-INFO setup.cfg

installer.command MANIFEST.in music21.egg-info README.md setup.py

I found nothing on the web, or doesn't work. How can I install it?

解决方案

Are you using Windows? If so, open up a Command Prompt window.

What I like to do is Copy the Link Address of the package that I would like to install. In this case, a simple google search lead me to a popular python package site : https://pypi.python.org/pypi/music21/1.9.3

Now to install this, in your command prompt window, type the following :

pip install https://pypi.python.org/packages/source/m/music21/music21-1.9.3.tar.gz#md5=d271e4a8c60cfa634796fc81d1278eaf

or

conda install https://pypi.python.org/packages/source/m/music21/music21-1.9.3.tar.gz#md5=d271e4a8c60cfa634796fc81d1278eaf

And it should automatically download the package from that link address, unzip it, and then attempt to install it in your python environment.

It's good to know how to install python packages manually as well for distributions that don't lend themselves as easily to cross-platform auto-installations.

What you would do is unzip the tar.gz file ( or any other compressed package file ) until you have a folder directory with a "setup.py" file name. You would go into your command prompt window and "cd" into that directory.

Then you would call the Python Executable by typing "python" which lets the command prompt know that you are calling python to run your command and finish the line so in total it looks like this :

python setup.py install

There you have it.

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值