簡體   English   中英

Python 2.7 模塊不存在

[英]Python 2.7 modules don't exists

我在哪里可以找到模塊“內置”和“future.backports.html”? 我需要這些模塊在https://github.com/folz/cleverbot.py/blob/master/cleverbot/cleverbot.py上運行程序

我試圖通過 cmd 中的“pip”安裝這些模塊,但 cmd 說這些模塊不存在。

setup.py它說:

install_requires=['future', 'requests'],

所以我想pip install future應該可以解決問題:

$ pip install future
Downloading/unpacking future
  Downloading future-0.15.2.tar.gz (1.6MB): 1.6MB downloaded
  Running setup.py (path:/tmp/pip-build-Q_wkRy/future/setup.py) egg_info for package future
[..]
Successfully installed future
Cleaning up...
$ python
Python 2.7.10 (default, Oct 14 2015, 16:09:02) 
[GCC 5.2.1 20151010] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from builtins import str
>>> from future.backports.html import parser

不確定為什么不只是運行setup.py文件或使用pip

暫無
暫無

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

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