python lockfile no moudle named LockFile issue
别旻
2023-12-01
fix this problem by flowing steps one by one
1.sudo pip uninstall lockfile
2.sudo rm /usr/lib/python2.7/dist-packages/lockfile.py
3.sudo rm /usr/lib/python2.7/dist-packages/lockfile.pyc
4.sudo -E pip install lockfile --upgrade
finally make sure the locfile.py path have been changed to /usr/local/lib