setuptools: ModuleNotFoundError: No module named 'six'
See original GitHub issueBuilding setuptools in the standard way I’ve used forever fails:
# /usr/pkg/bin/python3.6 setup.py build
Traceback (most recent call last):
File "setup.py", line 11, in <module>
import setuptools
File ".../setuptools-34.1.1/setuptools/__init__.py", line 10, in <module>
from six.moves import filter, map
ModuleNotFoundError: No module named 'six'
It looks like setuptools now added a six dependency, which breaks distributions that build from scratch, because six uses setuptools for installation (dependency cycle).
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:7 (4 by maintainers)
Top Results From Across the Web
ImportError: No module named six - python - Stack Overflow
With apt-get install python3-six I get "newest version" but with ipython I get ModuleNotFoundError: No module named 'six' . In /usr/lib/python3/dist-packages/ , ...
Read more >ModuleNotFoundError: No module named 'six' in Python
The Python "ModuleNotFoundError: No module named 'six'" occurs when we forget to install the six module before importing it or install it in...
Read more >[Fixed] ModuleNotFoundError: No module named 'setuptools'
Quick Fix: Python raises the ImportError: No module named 'setuptools' when it cannot find the library setuptools . The most frequent source of...
Read more >No module named 'ordered_set' | StoryBoard - OpenStack
openSUSE support broken with ModuleNotFoundError: No module named ... /python3.6/site-packages/setuptools/dist.py", line 30, in <module> ...
Read more >firewall-cmd (ModuleNotFoundError: No module named 'six')
first of all this issue happen due to python setuptools issue , by mistake or intentionally you upgrade it , and then after...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For anyone else stumbling over this issue, my solution was:
python -m ensurepip --user
I got the same problem after I upgrade python2.7.10 to python2.7.13.
None of the above works for me. Finally, I fixed this by download six package directly from pypi, then go to the download directory, and manually installed it by using python set-up.py install.