简体   繁体   English

如何在python中安装textfsm?

[英]How do I install textfsm in python?

Context: Windows 7, spyder with python 3.6 and anaconda. 上下文:Windows 7,带有python 3.6和anaconda的spyder。

Can't find textfsm on anaconda.org. 在anaconda.org上找不到textfsm

Can find textfsm in pypi - https://pypi.org/project/textfsm/#files 可以在pypi中找到textfsm - https: textfsm

Can download textfsm-0.4.1.tar.gz and extract to textfsm-0.4.1 可以下载textfsm-0.4.1.tar.gz并解压缩到textfsm-0.4.1

Do I put it in C:...\\Anaconda3\\Lib\\site-packages? 是否将其放在C:... \\ Anaconda3 \\ Lib \\ site-packages中?

What next? 接下来是什么?

Proceed to unpacked folder and run 继续解压文件夹并运行

python setup.py 

Usually it is all what you need in this case. 通常,在这种情况下,这就是您所需要的。 It should does all necessary things by itself if you have already installed all dependencies. 如果您已经安装了所有依赖项,则它应自行执行所有必要的操作。

You should also consider to use pip for package manipulation. 您还应该考虑使用pip进行软件包操作。 In 3.6 it is ready from box. 在3.6中,它可以从盒子中准备好。 But if it is not, just refer to https://pip.pypa.io/en/latest/installing/ and follow instructions. 但是,如果不是这样,只需参考https://pip.pypa.io/en/latest/installing/并按照说明进行操作。

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

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