0

一直在尝试安装一个名为python-nmap-0.2.4的模块。我输入

python /root/Downloads/python-nmap-0.2.4.setup.py install

但它显示了这个错误

Traceback (most recent call last):
  File "/root/Downloads/python-nmap-0.2.4/setup.py", line 43, in <module>
    long_description=open('README.txt').read() + "\n" + open('CHANGELOG').read(),
IOError: [Errno 2] No such file or directory: 'README.txt'

有没有人有什么建议?

4

2 回答 2

1

Some "suggestions":

  • Don't use the root account for this. Too risky - how much can you trust the download? Did you check a cryptographic signature, and whether it is a trusted source? If not, don't run it as root (and better yet, don't even use it at all!).
  • Does maybe your Linux come with a precompiled version? That is much more secure (because it should involve cryptographic signatures). Try aptitude install python-nmap.
  • Try installing from the source directory.
  • It may be much easier to just use the subprocess module, which is included by default.
于 2012-12-15T17:23:33.567 回答
0

1) May be PIP has this package? 2) May be package package has been damaged during download ?

于 2012-12-15T17:23:09.097 回答