成功解决ImportError: Missing optional dependency ‘fastparquet‘. fastparquet is required for parquet supp

简介: 成功解决ImportError: Missing optional dependency ‘fastparquet‘. fastparquet is required for parquet supp


目录

解决问题

解决思路

解决方法

T1、pip本地下载

T2、pip在线下载


 

 

 

解决问题

raise ImportError(msg) from None

ImportError: Missing optional dependency 'fastparquet'. fastparquet is required for parquet support. Use pip or conda to install fastparquet.

 

 

解决思路

提示导入错误(msg)

导入错误:缺少可选依赖项“fastparquet”。fastparquet 需要parquet支持。使用pip或conda安装fastparquet

 

 

解决方法

T1、pip本地下载

如果原先存在,可卸掉pyarrow后,重新下载即可!

pip install pyarrow-2.0.0-cp37-cp37m-win_amd64.whl

 

T2、pip在线下载

分别安装下边两个包

1. pip install fastparquet
2. pip install --upgrade -i https://pypi.tuna.tsinghua.edu.cn/simple pyarrow 
3. pip --default-timeout=1000 install --upgrade -i https://pypi.tuna.tsinghua.edu.cn/simple fastparquet

 

1. (base) C:\Users\niu>conda install -i https://pypi.tuna.tsinghua.edu.cn/simple fastparquet
2. usage: conda-script.py [-h] [-V] command ...
3. conda-script.py: error: unrecognized arguments: -i
4. 
5. (base) C:\Users\niuyayun>conda install fastparquet
6. Collecting package metadata (current_repodata.json): done
7. Solving environment: |
8. The environment is inconsistent, please check the package plan carefully
9. The following packages are causing the inconsistency:
10. 
11.   - defaults/win-64::anaconda==2020.02=py37_0
12.   - defaults/win-64::bkcharts==0.2=py37_0
13.   - defaults/noarch::dask==2.11.0=py_0
14.   - defaults/noarch::seaborn==0.10.0=py_0
15.   - defaults/win-64::statsmodels==0.11.0=py37he774522_0
16. failed with initial frozen solve. Retrying with flexible solve.
17. Solving environment: done
18. Collecting package metadata (repodata.json): done
19. Solving environment: /
20. The environment is inconsistent, please check the package plan carefully
21. The following packages are causing the inconsistency:
22. 
23.   - defaults/win-64::anaconda==2020.02=py37_0
24.   - defaults/win-64::bkcharts==0.2=py37_0
25.   - defaults/noarch::dask==2.11.0=py_0
26.   - defaults/noarch::seaborn==0.10.0=py_0
27.   - defaults/win-64::statsmodels==0.11.0=py37he774522_0
28. done
29. 
30. ## Package Plan ##
31. 
32.   environment location: D:\ProgramData\Anaconda3
33. 
34.   added / updated specs:
35.     - fastparquet
36. 
37. 
38. The following packages will be downloaded:
39. 
40.     package                    |            build
41.     ---------------------------|-----------------
42.     _anaconda_depends-2020.02  |           py37_0           6 KB
43.     anaconda-custom            |           py37_1           3 KB
44.     ca-certificates-2020.10.14 |                0         122 KB
45.     certifi-2020.6.20          |           py37_0         156 KB
46.     conda-4.9.0                |           py37_0         2.9 MB
47.     fastparquet-0.4.1          |   py37h2a96729_0         3.4 MB
48.     openssl-1.1.1h             |       he774522_0         4.8 MB
49.     pandas-1.1.3               |   py37ha925a31_0         7.3 MB
50.     thrift-0.11.0              |   py37h6538335_0         102 KB
51.     ------------------------------------------------------------
52.                                            Total:        18.8 MB
53. 
54. The following NEW packages will be INSTALLED:
55. 
56.   _anaconda_depends  pkgs/main/win-64::_anaconda_depends-2020.02-py37_0
57.   fastparquet        pkgs/main/win-64::fastparquet-0.4.1-py37h2a96729_0
58.   pandas             pkgs/main/win-64::pandas-1.1.3-py37ha925a31_0
59.   thrift             pkgs/main/win-64::thrift-0.11.0-py37h6538335_0
60. 
61. The following packages will be UPDATED:
62. 
63.   ca-certificates                                2020.1.1-0 --> 2020.10.14-0
64.   certifi                                 2019.11.28-py37_0 --> 2020.6.20-py37_0
65.   conda                                        4.8.2-py37_0 --> 4.9.0-py37_0
66.   openssl                                 1.1.1d-he774522_4 --> 1.1.1h-he774522_0
67. 
68. The following packages will be DOWNGRADED:
69. 
70.   anaconda                                   2020.02-py37_0 --> custom-py37_1
71. 
72. 
73. Proceed ([y]/n)? pip install fastparquet
74. Invalid choice: pip install fastparquet
75. Proceed ([y]/n)?
76. 
77. 
78. Downloading and Extracting Packages
79. _anaconda_depends-20 | 6 KB      | ############################################################################ | 100%
80. conda-4.9.0          | 2.9 MB    | ############################################################################ | 100%
81. pandas-1.1.3         | 7.3 MB    | ################################################################################################################# | 100%
82. certifi-2020.6.20    | 156 KB    | ################################################################################################################# | 100%
83. anaconda-custom      | 3 KB      | ################################################################################################################# | 100%
84. ca-certificates-2020 | 122 KB    | ################################################################################################################# | 100%
85. thrift-0.11.0        | 102 KB    | ################################################################################################################# | 100%
86. fastparquet-0.4.1    | 3.4 MB    | ################################################################################################################# | 100%
87. openssl-1.1.1h       | 4.8 MB    | ################################################################################################################# | 100%
88. Preparing transaction: done
89. Verifying transaction: done
90. Executing transaction: done

 

哈哈,大功告成!

 

相关文章
|
7月前
|
网络安全 Python Windows
pyspark--完美解决 Could not find a version that satisfies the requirement 安装包名字 (from versions: )
pyspark--完美解决 Could not find a version that satisfies the requirement 安装包名字 (from versions: )
436 9
“Could not find suitable distribution for Requirement.parse(‘XXXX‘)”的问题
“Could not find suitable distribution for Requirement.parse(‘XXXX‘)”的问题
386 0
|
7月前
|
分布式计算 安全 Java
Spark 编译出现 InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
Spark 编译出现 InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
188 0
使用parted创建大分区时 mkpart Warning: The resulting partition is not properly aligned for best performance.
fdisk不能创建大于2T的分区,创建大分区得用parted,我在用parted创建分区时遇到下面的警告提示
251 0
Caused by: org.yaml.snakeyaml.parser.ParserException: while parsing a block mapping
Caused by: org.yaml.snakeyaml.parser.ParserException: while parsing a block mapping
Caused by: org.yaml.snakeyaml.parser.ParserException: while parsing a block mapping
|
Python
解决办法:RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96
解决办法:RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96
573 0
|
SQL 分布式计算 Hadoop
导入hive表Error: Error while compiling statement: FAILED: SemanticException No files matching path file
导入hive表Error: Error while compiling statement: FAILED: SemanticException No files matching path file
成功解决ValueError: numpy.ufunc size changed, may indicate binary incompatibility. Expected 216 from C h
成功解决ValueError: numpy.ufunc size changed, may indicate binary incompatibility. Expected 216 from C h
成功解决ValueError: numpy.ufunc size changed, may indicate binary incompatibility. Expected 216 from C h
|
分布式计算 Java 5G
spark异常:missing an output location for shuffle 0
spark异常:missing an output location for shuffle 0
516 0
Error This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, se
错误提示: Severity Code Description Project File Line Suppression StateError This project references NuGet package(s) that are missing on this computer.
1045 0