亚洲精品久久久中文字幕-亚洲精品久久片久久-亚洲精品久久青草-亚洲精品久久婷婷爱久久婷婷-亚洲精品久久午夜香蕉

您的位置:首頁技術文章
文章詳情頁

Python pip 常用命令匯總

瀏覽:15日期:2022-07-07 18:26:34

使用了這么就pip命令,但是一直是簡單使用,很多命令都是用了查,查了用,今天把常用的命令匯總一下,方便使用。

命令:

pip

Python pip 常用命令匯總

由上圖可以看到 pip 支持一下命令

Commands: install Install packages. download Download packages. uninstall Uninstall packages. freeze Output installed packages in requirements format. list List installed packages. show Show information about installed packages. check Verify installed packages have compatible dependencies. search Search PyPI for packages. wheel Build wheels from your requirements. hash Compute hashes of package archives. completion A helper command used for command completion. help Show help for commands.

General Options: -h, --help Show help. --isolated Run pip in an isolated mode, ignoring environment variables and user configuration. -v, --verboseGive more output. Option is additive, and can be used up to 3 times. -V, --versionShow version and exit. -q, --quiet Give less output. Option is additive, and can be used up to 3 times (corresponding to WARNING, ERROR, and CRITICAL logging levels). --log <path>Path to a verbose appending log. --proxy <proxy> Specify a proxy in the form [user:passwd@]proxy.server:port. --retries <retries> Maximum number of retries each connection should attempt (default 5 times). --timeout <sec> Set the socket timeout (default 15 seconds). --exists-action <action> Default action when a path already exists: (s)witch, (i)gnore, (w)ipe, (b)ackup, (a)bort. --trusted-host <hostname> Mark this host as trusted, even though it does not have valid or any HTTPS. --cert <path>Path to alternate CA bundle. --client-cert <path> Path to SSL client certificate, a single file containing the private key and the certificate in PEM format. --cache-dir <dir> Store the cache data in <dir>. --no-cache-dir Disable the cache. --disable-pip-version-check Don’t periodically check PyPI to determine whether a new version of pip is available for download. Implied with --no-index.

1、install

pip installYou must give at least one requirement to install (see 'pip help install')

Python pip 常用命令匯總

所以這里可以直接使用一下命令實現在線安裝

pip install <包名> 或 pip install -r requirements.txt

通過使用== >= <= > <來指定版本,不寫則安裝最新版requirements.txt內容格式為:APScheduler==2.1.2Django==1.5.4MySQL-Connector-Python==2.0.1MySQL-python==1.2.3PIL==1.1.7South==1.0.2django-grappelli==2.6.3django-pagination==1.0.7

安裝本地安裝包

pip install <目錄>/<文件名> 或 pip install --use-wheel --no-index --find-links=wheelhouse/ <包名>

2、uninstall

卸載安裝包

pip uninstall <包名> 或 pip uninstall -r requirements.txt

升級包

pip install -U <包名>或:pip install <包名> --upgrade

升級pip

pip install -U pip

使用pip安裝插件的時候報錯:You are using pip version 8.1.1, however version 9.0.1 is available.You should consider upgrading via the ’python -m pip install --upgrade pip’ command.升級命令: python -m pip install --upgrade pip

3、freeze

pip freeze,查看已經安裝的包及版本信息。

Python pip 常用命令匯總

導出到指定文件中,如圖,注意 “ > ”,文件名稱隨意。常見按第二種寫法。

Python pip 常用命令匯總

4、list

Python pip 常用命令匯總

查詢可升級的包

pip list -o

Python pip 常用命令匯總

5、show

顯示包所在目錄及信息

Python pip 常用命令匯總

6、search

搜索包

pip search <搜索關鍵字>

以上就是Python pip 常用命令匯總的詳細內容,更多關于Python pip 常用命令的資料請關注好吧啦網其它相關文章!

標簽: Python 編程
相關文章:
主站蜘蛛池模板: 女人被躁的视频在线观看 | 成年人免费观看网站 | 九九激情视频 | 黄色在线免费看 | 香蕉久久高清国产精品免费 | 久久乐国产精品亚洲综合m3u8 | 欧美日韩视频在线观看高清免费网站 | 一级毛片日本特黄97人人 | 中文字幕午夜乱理片11111 | 国产精品久久久久久久久免费hd | 九九热亚洲精品综合视频 | 国产成人一区二区三区影院免费 | 激情毛片视频在线播放 | 亚洲区免费 | 91视频久久久久 | 99久久免费精品 | 欧美一级特黄aaaaaa在线看片 | 91精品国产91久久久久久青草 | 国产成人久久777777 | 国内精品免费 | 亚洲啪| 成 人国产在线观看高清不卡 | 一级毛片免费在线 | 免费在线观看网址 | 谁有免费的黄色网址 | 在线成人看片 | 久草毛片 | 亚洲国产情侣一区二区三区 | 搞黄视频免费 | 久久精品91| 国产一级内谢a级高清毛片 国产一级毛片大陆 | 久草在线视频福利资源站 | 婷婷色中文网 | 91视频免费观看 | 自偷自拍亚洲欧美清纯唯美 | 91网址在线 | 国产一区欧美 | jizz成熟丰满中文字幕 | 真人视频一级毛片 | 1314亚洲人成网站在线观看 | 精品高清写真视频在线 |