Home > other >  VSCode python import bosses to solve problems
VSCode python import bosses to solve problems

Time:11-29

I self-study python, Pycharm used, use VSCode now, recently met a matter of half a day don't understand:
The custom module pandas_tool. Py and str_replace. Py in the same directory, the former normal import the latter

Now I with pandas_tool. Py parent directory test_http_request. At the same level of py import pandas_tools. Py why complains, a mystery

There are bosses know? Thank you very much,

CodePudding user response:

Me along while, finally done, under the share: under the installation path of your python's Lib \ site - a new packages. PTH file, write the absolute path of the custom module, can the normal import, (Y1S1, VSCode import does not Pycharm works)

CodePudding user response:

thanks for sharing

CodePudding user response:

refer to the second floor of joy pig response:
thanks for sharing

Learn from bosses
  • Related