我已经在我的 EC2 服务器上安装了以下模块,该服务器已经安装了 Python (3.6) 和 Anaconda:
我该如何解决这个问题?
- snappy
- pyarrow
- s3fs
- fastparquet
[username@ip8 ~]$ conda -V
conda 4.2.13
[username@ip-~]$ python
Python 3.6.0 |Anaconda custom (64-bit)| (default, Dec 23 2016, 12:22:00)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
import fastparquet
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/username/anaconda3/lib/python3.6/site-packages/fastparquet/__init__.py", line 15, in <module>
from .core import read_thrift
File "/home/username/anaconda3/lib/python3.6/site-packages/fastparquet/core.py", line 11, in <module>
from .compression import decompress_data
File "/home/username/anaconda3/lib/python3.6/site-packages/fastparquet/compression.py", line 43, in <module>
compressions['SNAPPY'] = snappy.compress
AttributeError: module 'snappy' has no attribute 'compress'
我该如何解决这个问题?
import snappy; print(snappy.__file__)
吗?这将会显示你正在从哪里导入,我假设这是另一个“snappy”,可以将其删除。 - mdurantroot_dir_in_s3/myset.parquet/unique_id=500/
,而不分析父路径。在我看来,如果myset.parquet
中没有_metadata
,这是合理的。 - mdurant