1、创建配置文件
2、执行命令
3、安装jieba这个第三方库

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

posted @   小庄的blog  阅读(839)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 25岁的心里话
· 闲置电脑爆改个人服务器(超详细) #公网映射 #Vmware虚拟网络编辑器
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· 零经验选手,Compose 一天开发一款小游戏!
· 一起来玩mcp_server_sqlite,让AI帮你做增删改查!!
点击右上角即可分享
微信分享提示