After installing python on your system, open This PC (often called as ‘my computer’). Then click on ‘Advanced System Settings’ option located on the left of the screen. A pop-up windows will open up. There will be an option ‘Environment Variables’ at the bottom. The official home of the Python Programming Language. Windows operating system offers a very easy way to install any python package including pandas through command line. But before starting with the commands, we will have to first add the python path to environment variables.

Active1 year, 2 months ago

I am using Python 2.7 and trying to use dateutil as follows:

However, I get the following error:

Could you please let me know what is the six module for and how to get it installed in a Windows 7 machine?

vaultah
29.7k9 gold badges82 silver badges113 bronze badges
RaviRavi
1,1637 gold badges21 silver badges42 bronze badges

3 Answers

You need to install this

If you still don't know what pip is , then please also google for pip install

Python has it's own package manager which is supposed to help you finding packages and their dependencies:http://www.pip-installer.org/en/latest/

Oz123Oz123
14.8k21 gold badges87 silver badges142 bronze badges

here's what six is:

to install:

though if you did install python-dateutil from pip six should have been set as a dependency.

N.B.: to install pip run easy_install pip from command line.

zmozmo
21k2 gold badges39 silver badges73 bronze badges

I had the same question for macOS.

But the root cause was not installing Six. My macOS shipped Python version 2.7 was being usurped by a Python2 version I inherited by installing a package via brew.

I fixed my issue with: $ brew uninstall python@2

Some context on here: https://bugs.swift.org/browse/SR-1061

rustyMagnetrustyMagnet

Not the answer you're looking for? Browse other questions tagged pythonshared-librariespython-dateutilsix or ask your own question.

Latest version

Python Dateutil Download

Last released:

Extensions to the standard Python datetime module

Project description

dateutil - powerful extensions to datetime

The dateutil module provides powerful extensions tothe standard datetime module, available in Python.

Python Date Time

Installation

dateutil can be installed from PyPI using pip (note that the package name isdifferent from the importable name):

Download

dateutil is available on PyPIhttps://pypi.org/project/python-dateutil/

The documentation is hosted at:https://dateutil.readthedocs.io/en/stable/

Code

The code and issue tracker are hosted on Github:https://github.com/dateutil/dateutil/

Features

  • Computing of relative deltas (next month, next year,next monday, last week of month, etc);
  • Computing of relative deltas between two givendate and/or datetime objects;
  • Computing of dates based on very flexible recurrence rules,using a superset of the iCalendarspecification. Parsing of RFC strings is supported as well.
  • Generic parsing of dates in almost any string format;
  • Timezone (tzinfo) implementations for tzfile(5) formatfiles (/etc/localtime, /usr/share/zoneinfo, etc), TZenvironment string (in all known formats), iCalendarformat files, given ranges (with help from relative deltas),local machine timezone, fixed offset timezone, UTC timezone,and Windows registry-based time zones.
  • Internal up-to-date world timezone information based onOlson’s database.
  • Computing of Easter Sunday dates for any given year,using Western, Orthodox or Julian algorithms;
  • A comprehensive test suite.

Quick example

Here’s a snapshot, just to give an idea about the power of thepackage. For more examples, look at the documentation.

Install

Suppose you want to know how much time is left, inyears/months/days/etc, before the next easter happening on ayear with a Friday 13th in August, and you want to get today’sdate out of the “date” unix system command. Here is the code:

Being exactly 6 months ahead was really a coincidence :)

Contributing

We welcome many types of contributions - bug reports, pull requests (code, infrastructure or documentation fixes). For more information about how to contribute to the project, see the CONTRIBUTING.md file in the repository.

Author

The dateutil module was written by Gustavo Niemeyer <gustavo@niemeyer.net>in 2003.

It is maintained by:

  • Gustavo Niemeyer <gustavo@niemeyer.net> 2003-2011
  • Tomi Pieviläinen <tomi.pievilainen@iki.fi> 2012-2014
  • Yaron de Leeuw <me@jarondl.net> 2014-2016
  • Paul Ganssle <paul@ganssle.io> 2015-

Python 3.6 Dateutil

Starting with version 2.4.1, all source and binary distributions will be signedby a PGP key that has, at the very least, been signed by the key which made theprevious release. A table of release signing keys can be found below:

Install Python Dateutil Windows Updates

ReleasesSigning key fingerprint
2.4.1-6B49 ACBA DCF6 BD1C A206 67AB CD54 FCE3 D964 BEFB (mirror)

Contact

Install Python Dateutil Windows Update

Our mailing list is available at dateutil@python.org. As it is hosted by the PSF, it is subject to the PSF code ofconduct.

License

All contributions after December 1, 2017 released under dual license - either Apache 2.0 License or the BSD 3-Clause License. Contributions before December 1, 2017 - except those those explicitly relicensed - are released only under the BSD 3-Clause License.

Release historyRelease notifications

2.8.0

2.7.5

2.7.4

2.7.3

2.7.2

2.7.1

2.7.0

2.6.1

2.6.0

2.5.3

2.5.2

2.5.1

2.5.0

Python Pytz

2.4.2

2.4.1

2.4.0

2.3

2.2

2.1

2.0

1.5

1.4.1

1.4

1.2

1.1

1.0

0.5

0.4

Python Dateutil Windows

0.3

0.1

Download files

Python Dateutil Parser

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for python-dateutil, version 2.8.0
Filename, size & hashFile typePython versionUpload date
python_dateutil-2.8.0-py2.py3-none-any.whl (226.8 kB) Wheel py2.py3
python-dateutil-2.8.0.tar.gz (327.1 kB) Source None
Close

Hashes for python_dateutil-2.8.0-py2.py3-none-any.whl

Hashes for python_dateutil-2.8.0-py2.py3-none-any.whl
AlgorithmHash digest
SHA2567e6584c74aeed623791615e26efd690f29817a27c73085b78e4bad02493df2fb
MD533bfcff39e89f7c1c26a6bd9af54901c
BLAKE2-2564117c62faccbfbd163c7f57f3844689e3a78bae1f403648a6afb1d0866d87fbb
Close

Hashes for python-dateutil-2.8.0.tar.gz

Hashes for python-dateutil-2.8.0.tar.gz
AlgorithmHash digest
SHA256c89805f6f4d64db21ed966fda138f8a5ed7a4fdbc1a8ee329ce1b74e3c74da9e
MD5354db28843d949f1bc3e49e8458e22df
BLAKE2-256ad995b2e99737edeb28c71bcbec5b5dda19d0d9ef3ca3e92e3e925e7c0bb364c