Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing python dateutil

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

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

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

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' 
like image 392
user1050619 Avatar asked Aug 15 '12 00:08

user1050619


People also ask

Is dateutil included in Python?

Python 2. x has a great function called dateutil. parser which turns an ISO8601 formatted date into a python datetime value. It's not present in Python 3.

What is Python-Dateutil package?

In Python, dateutil is an extension module of the datetime module which is used for displaying the date and time. This dateutil module is used when we were in need to display timezone using the datetime module which does not support as it would be done in the time module.

What is dateutil parser?

This module offers a generic date/time string parser which is able to parse most known formats to represent a date and/or time. This module attempts to be forgiving with regards to unlikely input formats, returning a datetime object even for dates which are ambiguous.


1 Answers

This will install tastypie and its dependencies:

$ easy_install pip $ pip install django-tastypie 

To get only dateutil:

$ pip install python-dateutil 
like image 104
ldiqual Avatar answered Sep 25 '22 19:09

ldiqual