[ 
https://issues.apache.org/jira/browse/ARROW-4308?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17661331#comment-17661331
 ] 

Rok Mihevc commented on ARROW-4308:
-----------------------------------

This issue has been migrated to [issue 
#20881|https://github.com/apache/arrow/issues/20881] on GitHub. Please see the 
[migration documentation|https://github.com/apache/arrow/issues/14542] for 
further details.

> [Python] pyarrow has a hard dependency on pandas
> ------------------------------------------------
>
>                 Key: ARROW-4308
>                 URL: https://issues.apache.org/jira/browse/ARROW-4308
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Python
>            Reporter: Wes McKinney
>            Priority: Major
>             Fix For: 0.13.0
>
>
> We either need to make pandas a soft dependency (as it was in the past) or 
> add it to the package requirements. Calling {{pip install pyarrow}} for 
> 0.12.0 in a fresh environment results in
> {code}
> In [1]: import pyarrow as pa                                                  
>                                                                               
>                                    
> ---------------------------------------------------------------------------
> ModuleNotFoundError                       Traceback (most recent call last)
> <ipython-input-1-852643f3aad4> in <module>
> ----> 1 import pyarrow as pa
> ~/miniconda/envs/pyarrow-pip-3.7/lib/python3.7/site-packages/pyarrow/__init__.py
>  in <module>
>      52 
>      53 
> ---> 54 from pyarrow.lib import cpu_count, set_cpu_count
>      55 from pyarrow.lib import (null, bool_,
>      56                          int8, int16, int32, int64,
> ~/miniconda/envs/pyarrow-pip-3.7/lib/python3.7/site-packages/pyarrow/table.pxi
>  in init pyarrow.lib()
>      26     pass
>      27 else:
> ---> 28     import pyarrow.pandas_compat as pdcompat
>      29 
>      30 
> ~/miniconda/envs/pyarrow-pip-3.7/lib/python3.7/site-packages/pyarrow/pandas_compat.py
>  in <module>
>      22 import re
>      23 
> ---> 24 import pandas.core.internals as _int
>      25 import numpy as np
>      26 import pandas as pd
> ModuleNotFoundError: No module named 'pandas.core'
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to