pip安装pillow——死循环:[WinError5] & [TypeError:'module' object is not callable]

1.这次本来要安装个pillow,记得以前装了的,怎么这次就不行了。然后,下意识的使用:pip3 install pillow. 发现报错: [TypeError:‘module‘ object is not callable]

2.不明就里,百度一下,解决方案:在pip升级的时候,使用--user来安装会搞定。经验人告诉你:FP

3.成功安装user版本。心里很爽。暗暗觉得: 牛逼-lity。然而:打脸。

4.这下完了。各种pip均不能使用了,甚至报[WinError5]错误。内心一片死寂,还有一点想骂娘。百度了一下。大哥说:卸载python;重新安装!!!!!!!!!!

【W---T---F】!!!!!!!!!!不过看我这聪明的小脑袋!劳资把你pip卸载!

5.事实证明,卸载有用,并且只给你卸载最近的一款。回到----起点:‘又回到最初的起点,呆呆的站在镜子前’。。。。。wtf. 至少好歹活过来了。

pip安装pillow——死循环:[WinError5] & [TypeError:'module' object is not callable]

原文地址:https://www.cnblogs.com/cainiaoxuexi2017-ZYA/p/11734204.html

时间: 2024-08-01 15:49:38

pip安装pillow——死循环:[WinError5] & [TypeError:'module' object is not callable]的相关文章

django TypeError: 'module' object is not callable

原因:导入模块时直接把模块当函数使用 1 from rest_framework import reverse #import reverse module 2 3 4 5 @api_view(("GET",)) 6 def api_root(request, format=None): 7 return Response({ 8 "user": reverse("user-list", request=request, fromat=forma

【bugRecord1】driver=webdriver.firefox() TypeError: 'module' object is not callable

1 #coding=utf-8 2 from selenium import webdriver 3 driver=webdriver.firefox() 解决方法:firefox改为Firefox [bugRecord1]driver=webdriver.firefox() TypeError: 'module' object is not callable 原文地址:https://www.cnblogs.com/yllil/p/9011537.html

python 报错——Python TypeError: 'module' object is not callable 原因分析

原因分析:Python导入模块的方法有两种: import module 和 from module import 区别是前者所有导入的东西使用时需加上模块名的限定,而后者则不需要 例: >>>import pprint >>>pprint.pprint(people) OR >>>from pprint import * >>>pprint(people) 正确的代码:>>> import Person>&g

python3在pycharm中为什么导入random模块不能用? TypeError: 'module' object is not callable

新手学python求大神指导,也用sys导入了random.py的路径,仍然不行. 刚刚排错貌似找到了问题的原因...那是因为我在pycharm中新建的python文件名就是random,所以当前目录下就有一个random.py文件而且是自己写的,所以它在sys.path中会先找到自己定义的random.py并调用之,因为自己的什么都没有,所以就呵呵了:改了文件名字后就ok了 要多注意文件名这种情况,有时候文件名与系统的模块重名了,就出这种莫名其妙的错,也不方便查错 python3在pychar

[python]一个低级错误/xxx instance has no attribute 'xxx'/'module' object is not callable

今天在写代码的时候出现了以下两个错误: TypeError: 'module' object is not callable AttributeError: excelChange instance has no attribute 'xlBook' 上网一查,发现第一个错误是由于python中有两种不同的引用方式 import xxx 和 from xxx import *,前者在代码中引用时需要加上模块名和具体的方法或属性,具体方法如下: import catchForm self.xls

CentOS 安装paramiko 运行报错 'module' object has no attribute 'GSSException'

网上的解决办法都是: ssh_gss.py,53,54行改成: 53 import gssapi.error 54 GSS_EXCEPTIONS = (gssapi.error.GSSException,) 但是从可移植性的角度来说这么改肯定是下下策. 其实是缺少个依赖包,命令行 : yum install python-paramiko 安装完成后问题解决 CentOS 安装paramiko 运行报错 'module' object has no attribute 'GSSException

TypeError:'dict' object is not callable

TypeError:'dict' object is not callable 出现这种错误有两种可能: 1. 代码里重新定义了dict,比如 dict= {...},这时调用的是代码里定义的dict而不是python内置类型 2. 取字典内容时用了()而不是[].比如sdict("content_id"),应该是sdict["content_id"] TypeError:'dict' object is not callable

TypeError: 'str' object is not callable

Python报错TypeError: 'str' object is not callable TypeError: 'str' object is not callable

TypeError: 'QueryDict' object is not callable

id = int(request.POST('id')) Error message: TypeError: 'QueryDict' object is not callable Error reseaon: request.POST is a QueryDict, dictionary lookup syntax instead: id = int(request.POST['id']) TypeError: 'QueryDict' object is not callable