Failed to import the site module
Traceback (the most recent call last) :
the File “/ usr/lib/python3.5/site. Py”, line 580, in & lt; module>
the main () the File “/ usr/lib/python3.5/site. Py”, line 566, in the main
known_paths = addusersitepackages (known_paths)
the File “/ usr/lib/python3.5/site. Py”, line 287, In addusersitepackages
user_site = getusersitepackages ()
the File “/ usr/lib/python3.5/site. Py”, line 263, In getusersitepackages
user_base = getuserbase # () this will also set user_base
the File “/ usr/lib/python3.5/site. Py”, line 253, In getuserbase
USER_BASE = get_config_var (‘ userbase)
the File “/ usr/lib/python3.5/sysconfig py”, line 595, In get_config_var
return get_config_vars () get (name)
the File “/ usr/lib/python3.5/sysconfig py”, line 538, In get_config_vars
_init_posix (_CONFIG_VARS)
the File “/ usr/lib/python3.5/sysconfig py”, line 410, In _init_posix
from _sysconfigdata import build_time_vars
File “/usr/lib/python3.5/_sysconfigdata.py”, line 6, in < module>
from _sysconfigdata_m import *
ImportError: No module named ‘_sysconfigdata_m’
I only searched the beginning one, which said it had to do with Python. Later, a colleague searched for the last sentence error and found a solution:
# cd /usr/lib/python3.4
# ln -s /usr/lib/python3.4/plat-i386-linux-gnu/_sysconfigdata_m.py .
div>
Read More:
- How to Fix Gtk-Message: Failed to load module “canberra-gtk-module”
- Unable to call numpy in pychar, module notfounderror: no module named ‘numpy’
- Import error: no module named cryptography.hazmat.backends
- Module not found error: the solution to the problem of no module named ‘MySQL’
- Failed to import module __PyInstaller_hooks_0_IPython required by hook for module
- How to Fix Module build failed: Error: ENOENT: no such file or directory, scandir xxxxxx\node_…
- ModuleNotFoundError: No module named ‘numpy.testing.nosetester‘
- Module not founderror: no module named ‘nets.ssd‘
- Importerror: the perfect solution of no module named CV2!!! (not too good)
- Attributeerror: ‘module’ object has no attribute ‘handlers’ — Python sub module import problem
- How to solve “import cv2 failed ImportError: DLL load fail: Cannot find the specified module” in Anaconda environment
- ModuleNotFoundError: No module named xxx
- ImportError: No module named indexes.base
- matplotlib error – no module named tkinter
- Error loading pscopg2 module: no module named pscopg2
- Python:ImportError: No module named indexes.base
- Module build failed Error Plugin/Preset files are not allowed to export objects, only functions (How to Fix)
- How to Fix webpack Module build failed Error: The node API for ‘babel’ has been moved to babel-core
- Importerror of Django error: no module named**
- Error no module named ‘in newly installed Python_ sqlite3‘