Install in a new environment jupyter An error occurred when :AttributeError: module 'enum' has no attribute 'IntFlag'
, Details of the error are as follows
==> script messages <== Traceback (most recent call last): File
"/home/path/to/miniconda2/envs/py3/bin/jupyter-nbextension", line 4, in
<module> import re File
"/home/path/to/miniconda2/envs/py3/lib/python3.7/", line 143, in <module>
class RegexFlag(enum.IntFlag): AttributeError: module 'enum' has no attribute
In the same way , direct import re
The same error can occur , Query discovery , yes PYTHONPATH Setting error for , stay .bashrc It is reserved for previous use python2 Configuration left by , cause python3 Can't find the right one enum position , Comment out bashrc After the related statements in , empty $PYTHONPATH Variable :
unset PYTHONPATH # Check to see if it is empty echo $PYTHONPATH
Then it can be used normally ,PYTHONPATH yes python2 Multi purpose configuration in , use python3 and conda After the general no longer needed

©2020 ioDraw All rights reserved
python gui Interface examples -Python GUI Programming complete example vue element-ui Drop down menu with search algorithm : Longest common subsequence ( Output all longest common subsequences ) First knowledge Mongdb Data query ( three ) The problem of time type conversion “2021-01-20T10:09:11Z” Morphological processing gradient , Top hat , Black hat mean value - Implementation and application of variance model _python_ Data analysis _9 Wechat small program student course selection system app Design CCF A series of questions --2016 year 4 Month 1 Calculation of break point laravel The first mock exam is based on the "one to many" model. with,has,wherehas