我正在尝试使用Conda Python3.6打开我的jupyter笔记本。当我尝试打开它时,我收到此错误
VikMacBook-Pro:~ vik$ /anaconda3/bin/jupyter_mac.command ; exit;
Failed to import the site module
Traceback (most recent call last):
File "/anaconda3/lib/python3.6/site.py", line 541, in <module>
main()
File "/anaconda3/lib/python3.6/site.py", line 522, in main
known_paths = addusersitepackages(known_paths)
File "/anaconda3/lib/python3.6/site.py", line 282, in
addusersitepackages
user_site = getusersitepackages()
File "/anaconda3/lib/python3.6/site.py", line 258, in
getusersitepackages
user_base = getuserbase() # this will also set USER_BASE
File "/anaconda3/lib/python3.6/site.py", line 248, in getuserbase
USER_BASE = get_config_var('userbase')
File "/anaconda3/lib/python3.6/sysconfig.py", line 608, in
get_config_var
return get_config_vars().get(name)
File "/anaconda3/lib/python3.6/sysconfig.py", line 587, in
get_config_vars
import _osx_support
File "/anaconda3/lib/python3.6/_osx_support.py", line 4, in <module>
import re
File "/anaconda3/lib/python3.6/re.py", line 142, in <module>
class RegexFlag(enum.IntFlag):
AttributeError: module 'enum' has no attribute 'IntFlag'
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
我试图通过使用命令
跟随此endorsed answer来解决pip uninstall enum34
但是,运行此命令后我仍然收到以下错误
Vik-MacBook-Pro:~ vik$ pip uninstall enum34
Skipping enum34 as it is not installed.
我没有自己的名为enum.py的代码文件
答案 0 :(得分:0)
尝试使用“ pip3卸载enum34”对我有用