python 安装已下载外部插件

一.jar包

直接找到下载的jar包拉入pycharm就行。

二.whl格式

 1.找到pip的位置,一般在venv/script下。找到pip.exe(可以通过everything来快速定位)。

2. win+R输入cmd打开命令行cd到该目录下,或者在最上方的地址栏中输入cmd,直接在该目录下打开命令行。

3.输入pip install + 本地要安装的whl包的位置。(注意这里最好给路径加上双引号,以免产生歧义。如下,没有加双引号,将&认为是分隔符:(以防报错如下面第三条可以进入相应文件夹下以下面的命令安装:

pip install --no-index --find-links=./文件名

)

eg:pip install "D:\项目\自然语言处理\第八次实验\panda-2.2.3-cp312-cp312-win_amd64.whl"

 4. 重启pycharm就可以看到安装的软件包了

三.出现告错:Could not find a version that satisfies the requirement 安装包名字(from versions: )
No matching distribution found for 安装包名字

网上说修改镜像源来重新安装如下:

方法一:pip install 安装包名字 -i http://pypi.doubanio.com/simple/ --trusted-host pypi.doubanio.com //豆瓣镜像网站

方法二:pip install 安装包名字 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com //豆瓣

方法三:pip install 安装包名字 -i https://pypi.tuna.tsinghua.edu.cn/simple/ --trusted-host pypi.tuna.tsinghua.edu.cn //清华大学

还有下面几个国内pip 源,大家可以依次按照上面的方法试下

1)http://mirrors.aliyun.com/pypi/simple/ 阿里云
2)https://pypi.mirrors.ustc.edu.cn/simple/ 中国科技大学
3) http://pypi.mirrors.ustc.edu.cn/simple/ 中国科学技术大学

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值