成功解决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

 

哈哈,大功告成!

 

相关文章
|
机器学习/深度学习
YOLOv5改进 | DAttention (DAT)注意力机制实现极限涨点
YOLOv5改进 | DAttention (DAT)注意力机制实现极限涨点
680 0
|
并行计算 PyTorch 算法框架/工具
Importing the numpy C-extensions failed.
Importing the numpy C-extensions failed.
1966 0
Importing the numpy C-extensions failed.
|
7月前
|
机器学习/深度学习 人工智能 算法
停车场导航系统核心技术功能解析,助力造城市便捷项目改造
本文通过停车场反向寻车导航系统的核心技术:蓝牙定位和ai导航,以及车位引导、反向寻车、预约车位等功能,说明了停车场智慧升级带来的优势,如需获取智慧停车场反向寻车方案可前往文章末尾获取
436 3
|
8月前
|
算法 测试技术 C语言
深入理解HTTP/2:nghttp2库源码解析及客户端实现示例
通过解析nghttp2库的源码和实现一个简单的HTTP/2客户端示例,本文详细介绍了HTTP/2的关键特性和nghttp2的核心实现。了解这些内容可以帮助开发者更好地理解HTTP/2协议,提高Web应用的性能和用户体验。对于实际开发中的应用,可以根据需要进一步优化和扩展代码,以满足具体需求。
825 29
|
算法 数据挖掘
R语言中的贝叶斯统计方法
【4月更文挑战第26天】R语言在贝叶斯统计中发挥着重要作用,提供如"BUGS"、"Stan"、"JAGS"等包来处理复杂模型和数值计算。贝叶斯方法基于概率论,涉及先验分布、似然函数、后验分布和MCMC模拟。"BUGS"适用于复杂层次模型,"Stan"则在大规模数据和复杂模型上有优势。
333 2
|
数据安全/隐私保护 Python
【Python】已解决:WARNING: Ignoring invalid distribution -addlepaddle (d:\soft\python36\lib\site-packages)
【Python】已解决:WARNING: Ignoring invalid distribution -addlepaddle (d:\soft\python36\lib\site-packages)
3179 1
|
API Python
【Python】已解决:urllib.error.HTTPError: HTTP Error 403: Forbidden
【Python】已解决:urllib.error.HTTPError: HTTP Error 403: Forbidden
3774 2
|
机器学习/深度学习 存储 人工智能
【机器学习】GBDT (Gradient Boosting Decision Tree) 深入解析
GBDT,全称为Gradient Boosting Decision Tree,即梯度提升决策树,是机器学习领域中一种高效且强大的集成学习方法。它通过迭代地添加决策树以逐步降低预测误差,从而在各种任务中,尤其是回归和分类问题上表现出色。本文将深入浅出地介绍GBDT的基本原理、算法流程、关键参数调整策略以及其在实际应用中的表现与优化技巧。
3900 2
|
IDE 开发工具 Python
【Python】已解决:pip安装第三方模块(库)与PyCharm中不同步的问题(PyCharm添加本地python解释器)
【Python】已解决:pip安装第三方模块(库)与PyCharm中不同步的问题(PyCharm添加本地python解释器)
3015 0
|
存储 缓存 关系型数据库
Mysql增量备份之Mysqldump & Mylvmbackup
Mysql增量备份之Mysqldump & Mylvmbackup