首页 > 其他分享 >pip install flask 时,总包blinker uninstall 失败(ERROR: Cannot uninstall 'blinker'. It is a dist

pip install flask 时,总包blinker uninstall 失败(ERROR: Cannot uninstall 'blinker'. It is a dist

时间:2023-07-21 20:33:47浏览次数:42  
标签:... blinker flask version pip packages local uninstall

今天用pip install flask时,总因为uninstall blinker失败,报错如下:

```

ERROR: Cannot uninstall 'blinker'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

```

 

##

解决办法 卸载blinker版本再安装,命令如下: ``` apt-get remove blinker 1.4 sudo -H pip install --ignore-installed -U blinker ``` 最后再次安装flask尝试,终于安装成功了: ![截图](/i/l/?n=23&i=blog/2276927/202307/2276927-20230721202016305-691826207.png)

···
ubuntu@mn-1:/usr/lib$ pip install flask
Defaulting to user installation because normal site-packages is not writeable
Collecting flask
Downloading Flask-2.3.2-py3-none-any.whl (96 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 96.9/96.9 kB 170.6 kB/s eta 0:00:00
Requirement already satisfied: Werkzeug>=2.3.3 in /usr/local/lib/python3.10/dist-packages (from flask) (2.3.6)
Requirement already satisfied: Jinja2>=3.1.2 in /usr/local/lib/python3.10/dist-packages (from flask) (3.1.2)
Requirement already satisfied: itsdangerous>=2.1.2 in /usr/local/lib/python3.10/dist-packages (from flask) (2.1.2)
Requirement already satisfied: click>=8.1.3 in /usr/local/lib/python3.10/dist-packages (from flask) (8.1.6)
Requirement already satisfied: blinker>=1.6.2 in /usr/local/lib/python3.10/dist-packages (from flask) (1.6.2)
Requirement already satisfied: MarkupSafe>=2.0 in /usr/local/lib/python3.10/dist-packages (from Jinja2>=3.1.2->flask) (2.1.3)
DEPRECATION: distro-info 1.1build1 has a non-standard version number. pip 23.3 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of distro-info or contact the author to suggest that they release a version with a conforming version number. Discussion can be found at https://github.com/pypa/pip/issues/12063
DEPRECATION: python-debian 0.1.43ubuntu1 has a non-standard version number. pip 23.3 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of python-debian or contact the author to suggest that they release a version with a conforming version number. Discussion can be found at https://github.com/pypa/pip/issues/12063
Installing collected packages: flask
WARNING: The script flask is installed in '/home/ubuntu/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed flask-2.3.2
···

标签:...,blinker,flask,version,pip,packages,local,uninstall
From: https://www.cnblogs.com/pink-123/p/17572349.html

相关文章

  • Struts2中对数字进行格式化,1、将数字用 , 号分隔 2、将小数格式化为百分比 ...
    Struts2中对数字进行格式化,1、将数字用,号分隔2、将小数格式化为百分比2008-12-2422:36一、资源文件的配置(applicationResource_zh_CN.properties)format.number={0,number,###,###.##}format.discount={0,number,###.#######%}二、struts.xml<?xmlve......
  • 保持竞争力?感觉不如...保持好奇
    今天在某社区看到一个主题,有人建议程序员多努力,否则可能会因为“竞争力不足”而失业。回想过去的经历,这种话好像还挺耳熟的。从小开始,父母说要赢过别人家的孩子,老师说要赢过其他学生,具体来说,要么考试成绩比别人高、排名靠前,要么有“领导力”、做干部获得比他人更多的权力和地位......
  • js ... 运算符
    定义:扩展运算符(...)是ES6的语法,用于取出参数对象的所有可遍历属性,然后拷贝到当前对象之中。基本用法letperson={name:"Amy",age:15}letsomeone={...person}someone//{name:"Amy",age:15}特殊用法数组由于数组是特殊的对象,所以对象的扩展运算符也可以......
  • css将多余的字变成...
    display:-webkit-box;/*作为弹性伸缩盒子模型显示*/-webkit-line-clamp:1;/*显示的行数;如果要设置2行加...则设置为2*/overflow:hidden;/*超出的文本隐藏*/text-overflow:ellipsis;/*溢出用省略号*/-webkit-box-orient:vertical;/*伸缩盒子......
  • jquery__WEBPACK_IMPORTED_MODULE_2___default(...)(...).combobox is not a func
    1、问题:使用jquery的combobox控件的时候出现了这个错误。$('#mySelect').combobox({width:200,data:comboboxData,valueField:'desc',textField:'text'});2、解决过程:我上网看了很多都说是因为jquery没有正确......
  • checking whether to use .ctors/.dtors header and trailer... configure: error: mi
     001、问题:checkingwhethertouse.ctors/.dtorsheaderandtrailer...configure:error:missing__attribute__((constructor))support??[root@PC1build]#../configure--prefix=/usr--disable-profile--enable-add-ons--with-headers=/usr/include--with-bin......
  • for...in循环和for...of循环的区别?
    大原則:for...in只用來遍歷對象中的key,不用來遍歷數組 for…of是ES6新增的遍历方式,允许遍历一个含有iterator接口的数据结构(数组、对象等)并且返回各项的值,和ES3中的for…in的区别如下:for…of遍历获取的是对象的键值,for…in获取的是对象的键名;for…in会遍历对象的整个......
  • DockerDeskTop系列---【启动DockerDeskTop时报错:Please try shutting WSL down (wsl
    DockerDeskTop安装完成后,无法启动报错信息如下:PleasetryshuttingWSLdown(wsl--shutdown)and/orrebootingyourcomputer.Ifnotsufficient,WSLmayneedtobereinstalledfully.Asalastresort,trytouninstall/reinstallDockerDesktop.解决方案:以管......
  • python中import和import...from的区别
    今天遇到一个奇怪的问题,如下面的代码:importtkinterastkfromtkinterimportsimpledialogdefpopup():user_input=tk.simpledialog.askstring("输入对话框","请输入你的名字:")ifuser_inputisnotNone:print("你的名字是:",user_input)......
  • Git提交时出现Merge branch 'master' of ...之解决方法
    多人协作开发项目,在上传代码时通常会先pull一下远程代码,使本地与远程同步更新,但是如果远程此时与自己代码存在冲突,在解决冲突后提交有时会出现“Mergebranch‘master’of…”这条信息。这是因为pull其本质是fetch+Merge的结合。通常会分为以下两种情况:1.如果远程分支超前于本......