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

后端 未结 2 1510
天涯浪人
天涯浪人 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:49

    Had a similar problem where creating a built distribution archive of my own python package using wheel (python setup.py bdist_wheel) resulted in the same error message. Problem was resolved once I closed all open files of the package I wanted to generate a built distribution from (i.e. I closed my text-editor).

    As it is the same error and similar solution but occurring at a very different situation, I created its own stack-overflow question here

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题