安装python dateutil [英] Installing python dateutil

查看:552
本文介绍了安装python dateutil的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试为我的django tastypie安装python dateutil但不成功,

I tried to install python dateutil for my django tastypie but unsuccessful,

http://labix.org/python-dateutil#head-2f49784d6b27bae60cde1cff6a535663cf87497b

我在c:/ python27中下载了tar文件,并将其解压缩,

I downloaded the tar file in c:/python27 and unzipped it,

我收到以下错误msg,

I get the following error msg,

**C:\Python27\Scripts>**easy_install dateutil-1.5
Searching for dateutil-1.5
Reading http://pypi.python.org/simple/dateutil-1.5/
Couldn't find index page for 'dateutil-1.5' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
No local packages or download links found for dateutil-1.5
Best match: None
Traceback (most recent call last):
  File "C:\Python27\Scripts\easy_install-script.py", line 8, in <module>
    load_entry_point('setuptools==0.6c11', 'console_scripts', 'easy_install')()
  File "build/bdist.linux-i686/egg/setuptools/command/easy_install.py", line 171
2, in main
  File "build/bdist.linux-i686/egg/setuptools/command/easy_install.py", line 170
0, in with_ei_usage
  File "build/bdist.linux-i686/egg/setuptools/command/easy_install.py", line 171
6, in <lambda>
  File "C:\Python27\lib\distutils\core.py", line 152, in setup
    dist.run_commands()
  File "C:\Python27\lib\distutils\dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
    cmd_obj.run()
  File "build/bdist.linux-i686/egg/setuptools/command/easy_install.py", line 211
, in run
  File "build/bdist.linux-i686/egg/setuptools/command/easy_install.py", line 434
, in easy_install
  File "build/bdist.linux-i686/egg/setuptools/package_index.py", line 475, in fe
tch_distribution
AttributeError: 'NoneType' object has no attribute 'clone'


推荐答案

这将安装 tastypie 及其依赖项:

$ easy_install pip
$ pip install django-tastypie

得到只有dateutil:

To get only dateutil:

$ pip install python-dateutil

这篇关于安装python dateutil的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆