成功解决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)注意力机制实现极限涨点
648 0
|
并行计算 PyTorch 算法框架/工具
Importing the numpy C-extensions failed.
Importing the numpy C-extensions failed.
1921 0
Importing the numpy C-extensions failed.
|
7月前
|
机器学习/深度学习 人工智能 算法
停车场导航系统核心技术功能解析,助力造城市便捷项目改造
本文通过停车场反向寻车导航系统的核心技术:蓝牙定位和ai导航,以及车位引导、反向寻车、预约车位等功能,说明了停车场智慧升级带来的优势,如需获取智慧停车场反向寻车方案可前往文章末尾获取
356 3
|
安全 区块链 数据安全/隐私保护
StarTowerChain:区块链治理的卓越之路
StarTowerChain 是一个以社区为基础、用户为中心的区块链平台,通过民主决策和技术创新,建立了独特的治理模式。平台鼓励用户参与,通过贡献资源、验证交易等获得奖励,同时在加密技术、智能合约和跨链技术方面不断创新,确保资产安全和交易高效。未来,StarTowerChain 将继续优化治理机制,加大技术研发,引领区块链行业发展。
|
算法 数据挖掘
R语言中的贝叶斯统计方法
【4月更文挑战第26天】R语言在贝叶斯统计中发挥着重要作用,提供如"BUGS"、"Stan"、"JAGS"等包来处理复杂模型和数值计算。贝叶斯方法基于概率论,涉及先验分布、似然函数、后验分布和MCMC模拟。"BUGS"适用于复杂层次模型,"Stan"则在大规模数据和复杂模型上有优势。
318 2
|
IDE 开发工具 Python
【Python】已解决:pip安装第三方模块(库)与PyCharm中不同步的问题(PyCharm添加本地python解释器)
【Python】已解决:pip安装第三方模块(库)与PyCharm中不同步的问题(PyCharm添加本地python解释器)
2871 0
|
存储 缓存 关系型数据库
Mysql增量备份之Mysqldump & Mylvmbackup
Mysql增量备份之Mysqldump & Mylvmbackup
|
数据采集 机器学习/深度学习 Python
掌握XGBoost:特征工程与数据预处理
掌握XGBoost:特征工程与数据预处理
959 3
|
关系型数据库 MySQL 数据库
容器中的volume卷
本实验介绍了容器中Volume卷的挂载和使用
容器中的volume卷
|
机器学习/深度学习 传感器 编解码
TPAMI 2022 | 不同数据模态的人类动作识别综述,涵盖500篇文章精华(1)
TPAMI 2022 | 不同数据模态的人类动作识别综述,涵盖500篇文章精华
785 0