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


深情闻纸鹤
深情闻纸鹤 2022-09-19 12:04:37 51190
分类专栏: 资讯

成功解决raise ImportError(msg) from None
ImportError: Missing optional dependency 'fastparquet'. fastparquet is required for parquet support. Use pip or conda to install fastparquet.

目录

解决问题

解决思路

解决方法

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

哈哈,大功告成!

网站声明:如果转载,请联系本站管理员。否则一切后果自行承担。

本文链接:https://www.xckfsq.com/news/show.html?id=2243
赞同 0
评论 0 条
深情闻纸鹤L0
粉丝 0 发表 7 + 关注 私信
上周热门
如何使用 StarRocks 管理和优化数据湖中的数据?  2951
【软件正版化】软件正版化工作要点  2872
统信UOS试玩黑神话:悟空  2833
信刻光盘安全隔离与信息交换系统  2728
镜舟科技与中启乘数科技达成战略合作,共筑数据服务新生态  1261
grub引导程序无法找到指定设备和分区  1226
华为全联接大会2024丨软通动力分论坛精彩议程抢先看!  165
2024海洋能源产业融合发展论坛暨博览会同期活动-海洋能源与数字化智能化论坛成功举办  163
点击报名 | 京东2025校招进校行程预告  163
华为纯血鸿蒙正式版9月底见!但Mate 70的内情还得接着挖...  159
本周热议
我的信创开放社区兼职赚钱历程 40
今天你签到了吗? 27
如何玩转信创开放社区—从小白进阶到专家 15
信创开放社区邀请他人注册的具体步骤如下 15
方德桌面操作系统 14
用抖音玩法闯信创开放社区——用平台宣传企业产品服务 13
我有15积分有什么用? 13
如何让你先人一步获得悬赏问题信息?(创作者必看) 12
2024中国信创产业发展大会暨中国信息科技创新与应用博览会 9
中央国家机关政府采购中心:应当将CPU、操作系统符合安全可靠测评要求纳入采购需求 8

加入交流群

请使用微信扫一扫!