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.
setup.py 出错,多半还是网络的问题,多试几次。
看报错,是2个py文件互相 import了