python import uuid SyntaxError: invalid syntax错误

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_37674858/article/details/88802494

developer@PowerUbuntu:~/anaconda3/lib/python3.6/site-packages$ python 
Python 3.6.8 |Anaconda, Inc.| (default, Dec 30 2018, 01:22:34) 
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import uuid
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/developer/anaconda3/lib/python3.6/site-packages/uuid.py", line 138
    if not 0 <= time_low < 1<<32L:
                                ^
SyntaxError: invalid syntax
查看一下/home/developer/anaconda3/lib/python3.6/site-packages/uuid.py

删除掉 用自带的

猜你喜欢

转载自blog.csdn.net/qq_37674858/article/details/88802494