from import error

Asked 2 years ago, Updated 2 years ago, 38 views

I wrote from import in REPL, but I got an error and I don't know how to solve it.Also, the second photo had the fewest errors, but I didn't know why the error occurred.I'm ashamed that I'm immature, but I'd appreciate it if you could let me know.

Enter a description of the image here

Enter a description of the image here

python python3

2022-09-29 22:40

1 Answers

The first is probably that you cannot find the dll called vcomp140.dll.
OpenMP Library Reference

It may be that the dll was uninstalled for some reason, or that it was out of the search path of the dll.

Try shutting down and restarting Python command prompts:

Try re-inserting the redistributable VC++ package:
Download the latest supported Visual C++

Try uninstalling/reinstalling Python scikit-learn:
It may be an old version, but there is an article like this.
Problem of install in windows#15899
Error: Missing vcomp140.dll#18088

Why don't you update all of the Python modules installed, including scikit-learn?

Try various things.

The second is fromsklearn import data sets, which is probably due to the lack of space between from and sklean.


2022-09-29 22:40

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.