EnvironmentError [Errno 39] “Directory not empty” while pip installing or updating a package in python3

后端 未结 2 1509
天涯浪人
天涯浪人 2021-01-21 01:27

Posting both Q & A here as there wasn\'t a post on SO for this kind of error yet, and other links on web-search led to unresolved gihub issues. Here is me just updating a pa

2条回答
  •  清酒与你
    2021-01-21 01:53

    Checking the actual folder highlighted in the error message:

    /mnt/STUFF/py36/lib/python3.6/site-packages/~ornado
    

    I found that there was another one of those .fuse-hidden... files sitting there which is typically while I'm using Geany (text editor) in my folders during its runtime, which then disappear after I've saved by files and I refresh my folder. Somehow such a file got created here as well and never got removed. Note that this might be my OS's fault and not Geany's - IDK. Anyways I removed the file myself and ran the upgrade command and no errors this time.

提交回复
热议问题