Try to run this command from the system terminal. Make sure that you use the correct version of 'pip' installed for your Python interpreter located at
切换后,安装第三方库报错:
Try to run this command from the system terminal. Make sure that you use the correct version of 'pip' installed for your Python interpreter located at 'C:\Users\zhuangjie\AppData\Local\Programs\Python\Python39\python.exe'.、
下面解决上面的报错:
1、创建配置文件
第一步,先在我的电脑地址栏当中输入%APPDATA%,进入到文件夹以后新建一个pip文件夹
,接着再创建pip.ini文件
,如果创建文本看不到后缀名,可点击我的电脑最上面的查看
按钮,选择查看文件扩展名
pip.ini
1 2 3 4 | [global] index-url = https: //pypi.tuna.tsinghua.edu.cn/simple/ [install] trusted-host=pypi.tuna.tsinghua.edu.cn |
2、执行命令
打开一个cmd终端,执行以下命令:
python -m pip install pip==20.2.4
以下说明成功!
3、安装jieba这个第三方库
最后再安装一下jieba这个第三方库,就可以看到安装成功了!!!
这样你安装其它第三方库的就没问题了~
无脑摘自:https://blog.csdn.net/weixin_48244108/article/details/123548208
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 25岁的心里话
· 闲置电脑爆改个人服务器(超详细) #公网映射 #Vmware虚拟网络编辑器
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· 零经验选手,Compose 一天开发一款小游戏!
· 一起来玩mcp_server_sqlite,让AI帮你做增删改查!!