ImportError: No module named enum

后端 未结 5 1817
广开言路
广开言路 2020-12-24 04:50

I changed from Win XP 32bit to Win7 64bit and reinstalled Python 2.7 and the Anaconda package.

However, it seems like it isn\'t properly installed. When I do

5条回答
  •  不思量自难忘°
    2020-12-24 05:31

    I ran into this issue with Python 3.6 and Python 3.7. The top answer (running pip install --upgrade pip enum34) did not solve the problem.


    I don't know why, but the reason why this error happen is because enum.py was missing from .venv/myvenv/lib/python3.7/.

    But the file was in /usr/lib/python3.7/.

    Following this answer, I just created the symbolic link by myself :

    ln -s /usr/lib/python3.7/enum.py .venv/myvenv/lib/python3.7/enum.py
    

提交回复
热议问题