簡體   English   中英

如何在Windows中安裝Whois Python模塊

[英]How to install whois python module in windows

我想在Windows中安裝whois python模塊。 我試圖使用命令安裝Whois模塊

python setup.py install

贊譽於

https://pypi.python.org/pypi/pythonwhois

但是當我嘗試導入whois模塊時,它給出了錯誤

>>> import whois

Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    import whois
ImportError: No module named whois

預先感謝

我建議您首先安裝pip。 http://docs.python-guide.org/zh-CN/latest/starting/install/win/如何在Windows上安裝pip?

之后,轉到命令提示符,只需鍵入:
pip install whois

這應該做。

更新:安裝Whois的替代方法?
第1步:安裝pyhton后,將以下內容添加到環境變量中的PATH中。

C:\Python27\;C:\Python27\Scripts\

步驟2:下載ez_setup.py 運行它,它將安裝Setuptools。

步驟3:轉到command line/powershell並鍵入:

easy_install whois

步驟4:您完成了! 轉到python並import whois

嘗試使用PIP - http://pip.readthedocs.org/en/latest/installing.html ,下載文件,運行腳本,然后你可以做這樣的- http://www.pythonforbeginners.com/dns/using -pywhois ,pip安裝python-whois。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM