qazdrfvhuwyb 2022-04-15 15:02 采纳率: 100%
浏览 1402
已结题

pip安装pyhanlp时一直这样报错,有什么解决办法吗

D:\自然语言处理>pip install pyhanlp
Collecting pyhanlp
Using cached pyhanlp-0.1.84.tar.gz (136 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [10 lines of output]

  ----------------------------------------

  抱歉,暂不支持 Python 3.9 及以上版本。请执行如下命令:

      conda install -c conda-forge python=3.8 openjdk jpype1=0.7.0 -y
      pip install pyhanlp

  详细安装教程:https://bbs.hankcs.com/t/topic/13#install-1

  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

  • 写回答

1条回答 默认 最新

  • keenanli 2022-04-15 15:13
    关注

    不支持3.9

    conda install -c conda-forge python=3.8 openjdk jpype1=0.7.0 -y
    pip install pyhanlp

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

问题事件

  • 系统已结题 4月23日
  • 已采纳回答 4月15日
  • 创建了问题 4月15日

悬赏问题

  • ¥15 lammps拉伸应力应变曲线分析
  • ¥15 C++ 头文件/宏冲突问题解决
  • ¥15 用comsol模拟大气湍流通过底部加热(温度不同)的腔体
  • ¥50 安卓adb backup备份子用户应用数据失败
  • ¥20 有人能用聚类分析帮我分析一下文本内容嘛
  • ¥15 请问Lammps做复合材料拉伸模拟,应力应变曲线问题
  • ¥30 python代码,帮调试
  • ¥15 #MATLAB仿真#车辆换道路径规划
  • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建
  • ¥15 数据可视化Python