Pyhton pip can't proceed with requirement 'Pillow' due to a pre-existing build directory解决方案
来源:互联网 发布:c#,json的类子 编辑:程序博客网 时间:2024/06/05 11:46
昨天一个哥们找我,说在安装Pillow的时候,突然发生错误,如图所示:
就是说之前安装失败了,所以导致本次安装失败。
但是使用pip uninstall Pillow,命令行返回没有Pillow这个包。
即使去pip的安装目录下,手动删除Pillow也没有用。再次安装的时候还是这个问题…
于是查了一些相关的问题,发现了这个:
https://github.com/pypa/pip/issues/1935
这里说这是Pip的一个内部的Bug,虽然已经是close的状态,但是并没有解决还是存在的。既然是这是一个2014年提出的Bug,那么我觉得最新版本的pip应该就没有这个问题了吧…(因为我的电脑上pip是最新的版本,没有发生类似的问题)
于是我们查看一下当前pip的安装包 pip list
我们发现这个pip的版本是1.5.4
于是我们决定去升级pip版本pip install -U pip.(注意:这里需要使用管理员命令行执行,否则没有权限)
升级之后,我们再看pip使用pip list 查看一下:
现在,我们再安装一遍Pillow
安装成功!
0 0
- Pyhton pip can't proceed with requirement 'Pillow' due to a pre-existing build directory解决方案
- sem_open can't open a name with directory
- svn: Can't find a temporary directory
- can not startup. ORA-00824: cannot set sga_target due to existing internal settings
- Can't Edit Query Due To Configuration Or Vesrion Incorrect
- DB can't be started due to Memory lack
- How to add OLE drag-and-drop functionality to a pre-existing MFC application
- Inteface Buidler can't determine the type of "xx.xib" this may be due to a missing SDK.
- Unable to install pygraphviz from pip? Can't find graphviz.
- iOS “[App] if we're in the real pre-commit handler we can't actually add any new fences due
- iOS “[App] if we're in the real pre-commit handler we can't actually add any new fences due
- Can't open a connection to site 'SYB_BACKUP'. See the error log file in the ASE boot directory. Msg
- man: can't change directory to '/root': Permission denied
- svn: Can't find a temporary directory 问题解决
- svn: Can't find a temporary directory 问题解决
- Subversion Error: Can't find a temporary directory: Internal error
- File permissions: why can't I list a directory?
- Failed to replace a bad datanode on the existing pipeline due to no more good datanodes being availa
- 算法篇-14-A*算法解决八数码问题
- animation CSS3动画总结
- 微赞微擎模块400+,涵盖目前大多数功能模块,你值得拥有
- 纯CSS实现瀑布流布局
- GNU C 、ANSI C、标准C、标准c++区别和联系
- Pyhton pip can't proceed with requirement 'Pillow' due to a pre-existing build directory解决方案
- Android:微信分享(好友、朋友圈、收藏)图片信息
- ORM
- 关于灰度直方图
- 【Apache】Apache修改vhost
- JS去除字符串中的中括号或是中括号及其中间内容
- JavaScript事件详解
- VS2008 fatal error C1859: “.pch”意外的预编译头错误
- 换工作有感