In this post, we will explore How To Fix - "No Module Named Pkg_Resources" Error in Django\Python. Error Log -
No Module Named Pkg\_Resources
ImportError: No module named pkg\_resources
Generally this error message is triggered by some missing or broken Python setuptools package. First thing first, few basic sanity checks to be done -
pip install setuptools==45.0.0
pip install --upgrade 'setuptools<45.0.0'
If you have already installed setuptools, use below -
sudo pip install setuptools --upgrade
pip install --upgrade distribute
sudo easy\_install install setuptools --upgrade
If you don't have setuptools, install it using below -
pip install setuptools
OR Install SetUpTools of specific version.
pip install setuptools==45.0.0
Few other options of installing setuptools
sudo apt install --reinstall python3-pkg-resources python3-setuptools
sudo apt-get install --reinstall python-pkg-resources
import pkg\_resources.py2\_warn
pyinstaller --hidden-import=pkg\_resources.py2\_warn --onefile myprog.py
No Module Named Pkg\_Resources ,ImportError: No module named pkg\_resources ,importerror: no module named pkg\_resources centos 7 ,importerror: no module named pkg\_resources redhat ,modulenotfounderror no module named 'pkg\_resources' ubuntu ,no module named 'pkg\_resources.py2\_warn' ,no module named pip ,no module named pkg\_resources ansible ,no module named pkg\_resources arch ,no module named pkg\_resources centos 7 ,no module named pkg\_resources centos 7 ,no module named pkg\_resources debian ,no module named pkg\_resources debian ,no module named pkg\_resources debian ,no module named pkg\_resources gentoo ,no module named pkg\_resources mac ,no module named pkg\_resources mac ,no module named pkg\_resources mac ,no module named pkg\_resources python ,no module named pkg\_resources ubuntu ,no module named pkg\_resources windows ,python ,yocto modulenotfounderror: no module named 'pkg\_resources' ,