@[TOC] Linux环境python3.6下,安装nmap库
nmap模块
不同的环境,安装的命令不一样,我的百度过很多的nmap的安装方法,但是要么系统不匹配,要么版本跟不上(python2.7),所以,我自己做了一些尝试,才得出结果。
打开命令行
先安装系统的namp:
sudo apt-get install nmap -y
然后安装python的nmap:
pip3 install python-nmap
示例:
ran@linux:~$ pip3 install python-nmap
Collecting python-nmap
Downloading https://files.pythonhosted.org/packages/dc/f2/9e1a2953d4d824e183ac033e3d223055e40e695fa6db2cb3e94a864eaa84/python-nmap-0.6.1.tar.gz (41kB)
100% |████████████████████████████████| 51kB 9.6kB/s
Building wheels for collected packages: python-nmap
Running setup.py bdist_wheel for python-nmap … done
Stored in directory: /home/ran/.cache/pip/wheels/bb/a6/48/4d9e2285291b458c3f17064b1dac2f2fb0045736cb88562854
Successfully built python-nmap
Installing collected packages: python-nmap
Successfully installed python-nmap-0.6.1
以上,安装完毕