Disclaimer: This article is a blogger original article, welcome to reprint, please indicate the source https://blog.csdn.net/mouday/article/details/90902489
Question:
As early as PyCharm in commissioning projects, the introduction of other modules from the root directory of the project, can be normal debugging,
On-line after the discovery was not added to the root directory of the project environment variable, you will get an error:
ImportError: No module named
Solution:
Add the top-level directory path to the Python path
export PYTHONPATH=/root