I went ahead and downloaded it, but I
had problems when I tried to use it.
Apparently the download includes
source files, and I had absolutely no
idea how to use it in my “project” in
eclipse.
你应该在你的命令行类型中使用pip:
pip install python-dateutil
这个命令将为你做所有的事情,它将下载并安装库
自动.如果你没有pip,请参阅上面的文档,看看你应该如何安装它
Do I need to include the source files
directly with my files? Perhaps in a
subdirectory? How would I use it in my
code (how do I import them in my .py
file)?
如果您使用上面的pip不需要,您现在应该只在脚本中导入dateutil以使用它:
import dateutil
Do I need to “build” (make?) them and
reference them? How? How do you
“compile” something like that in
windows?
一切都是用pip完成的(魔法不是:))
Am I totally missing some important
point?
是的python很酷,简单而有趣,忘了make,make install …… python中的所有内容都很容易安装.
而对于G的爱…请使用pip(这是BDFL的订单).
希望这可以帮助:)