No module named ‘pkg_resources.extern’ [How to Solve]

When reading “flame web development”, you need to install the virtual environment through virtualenv tools, and you need to use easy to find a tool_ Install to install. After operating according to the official tutorial setup tools, enter:
easy on the command line_ Install virtualenv gets the following output:

Traceback (most recent call last):
  File "D:\Python34\Scripts\easy_install-script.py", line 11, in <module>
    load_entry_point('setuptools==28.6.1', 'console_scripts', 'easy_install')()
  File "D:\Python34\lib\site-packages\pkg_resources\__init__.py", line 519, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "D:\Python34\lib\site-packages\pkg_resources\__init__.py", line 2630, in load_entry_point
    return ep.load()
  File "D:\Python34\lib\site-packages\pkg_resources\__init__.py", line 2310, in load
    return self.resolve()
  File "D:\Python34\lib\site-packages\pkg_resources\__init__.py", line 2316, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "d:\python34\lib\site-packages\setuptools-28.6.1-py3.4.egg\setuptools\__init__.py", line 10, in <module>
  File "d:\python34\lib\site-packages\setuptools-28.6.1-py3.4.egg\setuptools\extern\__init__.py", line 1, in <module>
ImportError: No module named 'pkg_resources.extern'

To solve this problem, run the following command:

pip install --upgrade setuptools
pip install --upgrade distribute

Similar Posts: