When I was in the configuration python django framework found that as long as the import pandas as pd run error content as follows:
I will pandas annotation running normally deliver
The File "is the manage. Py", line 15, in & lt; module>
Execute_from_command_line (sys. Argv)
File "D: \ Anaconda3 \ lib \ site - packages \ django/core/management/set p y", the line
The utility. The execute ()
File "D: \ Anaconda3 \ lib \ site - packages \ django/core/management/set p y", the line
Self. Fetch_command (subcommand). Run_from_argv (self. Argv)
The File "D: \ Anaconda3 \ lib \ site - packages \ django \ core \ management \ base py", line 323
The self. The execute (* args, * * cmd_options)
File "D: \ Anaconda3 \ lib \ site - packages \ django/core/management/commands \ runserver then executes
Super (). The execute (* args, * * options)
The File "D: \ Anaconda3 \ lib \ site - packages \ django \ core \ management \ base py", line 364
The output=self. Handle (* args, * * options)
File "D: \ Anaconda3 \ lib \ site - packages \ django/core/management/commands \ runserver then executes
The self. The run options (* *)
File "D: \ Anaconda3 \ lib \ site - packages \ django/core/management/commands \ runserver then executes
Autoreload. Run_with_reloader (self inner_run, * * options)
The File "D: \ Anaconda3 \ lib \ site - packages \ django \ utils \ autoreload py", line 598, in
Start_django (reloader main_func, * args, * * kwargs)
The File "D: \ Anaconda3 \ lib \ site - packages \ django \ utils \ autoreload py", line 583, in
Reloader. Run (django_main_thread)
The File "D: \ Anaconda3 \ lib \ site - packages \ django \ utils \ autoreload py", line 301, in
Self. Run_loop ()
The File "D: \ Anaconda3 \ lib \ site - packages \ django \ utils \ autoreload py", line 307, in
Next (ticker)
The File "D: \ Anaconda3 \ lib \ site - packages \ django \ utils \ autoreload py", line 347, in
For filepath, mtime in self snapshot_files () :
The File "D: \ Anaconda3 \ lib \ site - packages \ django \ utils \ autoreload py", line 363, in
For file in self. Watched_files () :
The File "D: \ Anaconda3 \ lib \ site - packages \ django \ utils \ autoreload py", line 262, in
The yield from iter_all_python_module_files ()
The File "D: \ Anaconda3 \ lib \ site - packages \ django \ utils \ autoreload py", line 103, in
Return iter_modules_and_files (modules, frozenset (_error_files))
The File "D: \ Anaconda3 \ lib \ site - packages \ django \ utils \ autoreload py", line 116, in
If the module. __name__=="__main__ ':
The File "D: \ Anaconda3 \ lib \ site - packages \ p y \ _apipkg py", line 171, in __getattribu
Return getattr (getmod (), name)
File "D: \ Anaconda3 \ lib \ site - packages \ p y \ _error py", 43, line in __getattr__
Raise AttributeError (name)
AttributeError: __name__