kou commented on code in PR #46591: URL: https://github.com/apache/arrow/pull/46591#discussion_r2107956847
########## docs/source/python/install.rst: ########## @@ -63,6 +63,25 @@ need to install the `Visual C++ Redistributable for Visual Studio 2015 .. warning:: On Linux, you will need pip >= 19.0 to detect the prebuilt binary packages. +You may encounter problems writing datetime data to a file if you install +pyarrow with pip. One process to fix this problem: + + 1. Install tzdata with ``pip install tzdata`` + + 2. Set the environmental variable ``TZDIR`` = ``path/to/tzdata`` + +You can find where ``tzdata`` is installed with the following python +commands Review Comment: ```suggestion commands: ``` ########## docs/source/python/install.rst: ########## @@ -63,6 +63,25 @@ need to install the `Visual C++ Redistributable for Visual Studio 2015 .. warning:: On Linux, you will need pip >= 19.0 to detect the prebuilt binary packages. +You may encounter problems writing datetime data to a file if you install +pyarrow with pip. One process to fix this problem: + + 1. Install tzdata with ``pip install tzdata`` + + 2. Set the environmental variable ``TZDIR`` = ``path/to/tzdata`` + +You can find where ``tzdata`` is installed with the following python +commands + +.. code-block:: python + + >>> import tzdata + >>> print(tzdata.__file__) + path\to\.venv\Lib\site-packages\tzdata\__init__.py + +You only need to set the TZDIR environmental variable to +``path\to\.venv\Lib\site-packages\tzdata\`` in the above example Review Comment: ```suggestion ``path\to\.venv\Lib\site-packages\tzdata\`` in the above example. ``` ########## docs/source/python/install.rst: ########## @@ -63,6 +63,25 @@ need to install the `Visual C++ Redistributable for Visual Studio 2015 .. warning:: On Linux, you will need pip >= 19.0 to detect the prebuilt binary packages. +You may encounter problems writing datetime data to a file if you install +pyarrow with pip. One process to fix this problem: + + 1. Install tzdata with ``pip install tzdata`` + + 2. Set the environmental variable ``TZDIR`` = ``path/to/tzdata`` + +You can find where ``tzdata`` is installed with the following python +commands + +.. code-block:: python + + >>> import tzdata + >>> print(tzdata.__file__) + path\to\.venv\Lib\site-packages\tzdata\__init__.py + +You only need to set the TZDIR environmental variable to Review Comment: ```suggestion You only need to set the ``TZDIR`` environmental variable to ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org