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
Laravel HomesteadVue Novice : The front end of file preview function python-- Freshman final test questions ( With answers )C# Time every day 00 spot 00 branch 00 Second auto restart software This article takes you to explain the working principle of matrix keyboard springboot+vue+shiro Function authority Mining virus processing record Vue Export page as PDF file @ControllerAdvice Intercept abnormal return data 10000 R & D personnel ! Huawei's world's first car size lidar 150 M detection range