在这里发布两个问答,因为还没有关于此类错误的帖子,并且网络搜索上的其他链接导致了未解决的 gihub 问题。这是我刚刚在虚拟 python 环境中更新一个包:
\n\n(py36) $ pip install tornado -U\nCollecting tornado\n Downloading https://files.pythonhosted.org/packages/03/3f/5f89d99fca3c0100c8cede4f53f660b126d39e0d6a1e943e95cc3ed386fb/tornado-6.0.2.tar.gz (481kB)\n 100% |\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88\xe2\x96\x88| 491kB 476kB/s \nBuilding wheels for collected packages: tornado\n Building wheel for tornado (setup.py) ... done\n Stored in directory: /home/nikhil/.cache/pip/wheels/61/7e/7a/5e02e60dc329aef32ecf70e0425319ee7e2198c3a7cf98b4a2\nSuccessfully built tornado\nInstalling collected packages: tornado\n Found existing installation: tornado 5.1.1\n Uninstalling tornado-5.1.1:\n Successfully uninstalled tornado-5.1.1\nCould not install packages due to an EnvironmentError: [Errno 39] Directory not empty: '/mnt/STUFF/py36/lib/python3.6/site-packages/~ornado'\n
Run Code Online (Sandbox Code Playgroud)\n\n那么如何解决这个问题呢?
\n检查错误消息中突出显示的实际文件夹:
/mnt/STUFF/py36/lib/python3.6/site-packages/~ornado
Run Code Online (Sandbox Code Playgroud)
我发现其中还有另一个.fuse-hidden...
文件,通常是在运行时在文件夹中使用 Geany(文本编辑器)时出现的,然后在我保存文件并刷新文件夹后,该文件就会消失。不知何故,这样的文件也在这里创建并且从未被删除。请注意,这可能是我操作系统的错误,而不是 Geany 的错误 - IDK。无论如何,我自己删除了该文件并运行了升级命令,这次没有错误。
归档时间: |
|
查看次数: |
17784 次 |
最近记录: |