简体   繁体   English

python模糊软件包安装

[英]python fuzzy package installation

So I am new (very new) to python (I have python32), and trying to install the fuzzy package to use Nysiis function. 因此,我是python(我刚安装python32)的新手(新手),并尝试安装Fuzzy包以使用Nysiis函数。 I've been googling installation procedure for pip and fuzzy package, but keep getting error as following: 我一直在搜索pip和Fuzzy软件包的安装过程,但始终出现如下错误:

File "setup.py", line 1, in from setuptool import setup ImportError: No module named setuptools 来自setuptool导入安装程序ImportError中的文件“ setup.py”(第1行):没有名为setuptools的模块

So from the error, I think setuptools have to be used to install, am I right? 因此,从错误中我认为必须使用setuptools进行安装,对吗? Also, do I need other packages to install the fuzzy package? 另外,我需要其他软件包来安装模糊软件包吗? Could someone take a step by step process of installing fuzzy package in python (from the beginning)? 有人可以逐步(从头开始)逐步在python中安装模糊包吗?

Thank you! 谢谢!

pip is a good tool for getting python into your installation; pip是使python进入安装的好工具; it's built on top of setuptools and extends it to do its job. 它建立在setuptools之上,并将其扩展以完成其工作。

It's sufficient to run the pip installer in your environtment; 在您的环境中运行pip安装程序就足够了; that will install pip and all of its dependencies (mainly setuptools). 将安装pip及其所有依赖项(主要是setuptools)。

From there, so long as the package is in the package index, you can run 从那里开始,只要包在包索引中,就可以运行

pip install foo-package

If not, but a downloadable version is available which contains a proper setup.py (it sounds that way from your question), cd into the directory that contains the setup.py (usually at the top level) and run: 如果不是,则可以下载一个包含适当setup.py可下载版本(听起来像是您的问题),将cd插入包含setup.py的目录(通常在顶层)并运行:

pip install -e .

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM