Y. ້໌ᮨ 2023-03-22 12:51 采纳率: 33.3%
浏览 11

python导入git库报错,如何解决

C:\Users\17719>cd learntools

C:\Users\17719\learntools>pip install .
Processing c:\users\17719\learntools
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [8 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "C:\Users\17719\learntools\setup.py", line 1, in
import learntools
File "C:\Users\17719\learntools\learntools_init.py", line 1, in
from . import core, data_viz_to_coder, deep_learning, embeddings, gans,
ImportError: cannot import name 'ml_insights' from partially initialized module 'learntools' (most likely due to a circular import) (C:\Users\17719\learntools\learntools_init
.py)
[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.

img

  • 写回答

3条回答 默认 最新

  • threenewbee 2023-03-22 13:28
    关注

    setup.py 出错,多半还是网络的问题,多试几次。

    评论

报告相同问题?

问题事件

  • 修改了问题 3月22日
  • 创建了问题 3月22日

悬赏问题

  • ¥15 Dell g15 每次打开eiq portal后3分钟内自动退出
  • ¥15 大二软件工程基础大题
  • ¥200 使用python编写程序,采用socket方式获取网页实时刷新的数据,能定时print()出来就行。
  • ¥15 matlab如何根据图片中的公式绘制e和v的曲线图
  • ¥15 我想用Python(Django)+Vue搭建一个用户登录界面,但是在运行npm run serve时报错了如何解决?
  • ¥15 QQ邮箱过期怎么恢复?
  • ¥15 登录他人的vue项目显示服务器错误
  • ¥15 (标签-android|关键词-app)
  • ¥60 如何批量获取json的url
  • ¥15 comsol仿真压阻传感器