欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

PyCharm添加python庫的方法步驟

 更新時(shí)間:2024年03月08日 10:11:23   作者:harkbox  
在使用PyCharm過程中,有時(shí)候需要添加需要的Python擴(kuò)展庫,本文主要介紹了PyCharm添加python庫的方法步驟,具有一定的參考價(jià)值,感興趣的可以了解一下

1.使用pip命令在國內(nèi)源下載需要的庫

下面使用清華源,在cmd中輸入如下命令就可以了

pip install i https://pypi.tuna.tsinghua.edu.cn/simple 包名==版本號

2.如果出現(xiàn)報(bào)錯(cuò)信息,Cannot unpack file…這種情況,比如下面這種

ERROR: Cannot unpack file C:\Users\wpp\AppData\Local\Temp\pip-unpack-rqlph24p\simple (downloaded from C:\Users\wpp\AppData\Local\Temp\pip-req-build-7a0cap2f, content-type: text/html; charset=utf-8); cannot detect archive format ERROR: Cannot determine archive format of C:\Users\wpp\AppData\Local\Temp\pip-req-build-7a0cap2f

3.那么可以使用如下cmd命令

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn 包名

4.下載完畢后可以在cmd中輸入

pip list

來查看已經(jīng)擁有的庫

5.在cmd中使用

where python

獲得python的安裝路徑C:\Users\m\AppData\Local\Programs\Python\Python38-32\python.exe

6.在C:\Users\m\AppData\Local\Programs\Python\Python38-32\下找到 site-package文件夾,在里面找到你安裝的庫文件夾,有兩個(gè),全部復(fù)制

7.將其復(fù)制在Pycharm如下的文件夾下

在這里插入圖片描述

之后就可以愉快使用啦

到此這篇關(guān)于PyCharm添加python庫的方法步驟的文章就介紹到這了,更多相關(guān)PyCharm添加python庫內(nèi)容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!

相關(guān)文章

最新評論