Home > other >  How the KNN jupyter. Py import Python module??
How the KNN jupyter. Py import Python module??

Time:09-21

Procedure referred to directly import KNN complains, ask how do you like our great god says about the specific operation of all stripes

CodePudding user response:

First to determine whether you installed the KNN package, if there is no complains, of course, can search for how to install package
Reference: PIP install KNN

CodePudding user response:

reference 1/f, trying to get rid of procrastination white reply:
to determine whether or not you first installed the KNN package, if there is no complains, of course, can search for how to install packages
Reference: PIP install KNN

In the folder to generate a KNN. Py files, but it still doesn't work

CodePudding user response:

If you are in the folder to generate a KNN. Py file, then check the current path, first is KNN. Py files in the path:
The import OS
OS. Getcwd ()

If not change:
Path=r "D: \ \ XXX XXX"
OS. The chdir (path)

Path is your KNN. Py's path

CodePudding user response:

Good?? , thank you for your bosses

CodePudding user response:

Method of import module Python at different levels
  • Related