I just installed Python 3.6.1 for MacOS X
When I attempt to run the Console(or run anything with Python3), this error is thrown:
AttributeError: mo
If you having this issue when running tests in PyCharm
, make sure the second box is unchecked in the configurations.
Unfortunately none of the suggestions helped me, but after some more googling this
pip install aenum
solved it for me
When ever I got this problem:
AttributeError: module 'enum' has no attribute 'IntFlag'
simply first i run the command:
unset PYTHONPATH
and then run my desired command then got success in that.
In case you have to keep PYTHONPATH for both python2 and python3, you can write alias statements to set the proper PYTHONPATH in your bash_profile:
Hardcode your PYTHONPATH2, and PYTHONPATH3 variables in your ~/.bash_profile, and add the following aliases at the end of it:
alias python='export PYTHONPATH=${PYTHONPATH2};python'
alias python3='export PYTHONPATH=${PYTHONPATH3};python3'
My python
(refers to python2) as I use python2 more often.
Disabling "Google App Engine Support" in pycharm preferences fixed this issue for me.