av一区二区在线观看_亚洲男人的天堂网站_日韩亚洲视频_在线成人免费_欧美日韩精品免费观看视频_久草视

您的位置:首頁技術(shù)文章
文章詳情頁

Python pip 常用命令匯總

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

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

命令:

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 常用命令匯總

所以這里可以直接使用一下命令實(shí)現(xiàn)在線安裝

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

通過使用== >= <= > <來指定版本,不寫則安裝最新版requirements.txt內(nèi)容格式為: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

升級(jí)包

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

升級(jí)pip

pip install -U pip

使用pip安裝插件的時(shí)候報(bào)錯(cuò):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.升級(jí)命令: python -m pip install --upgrade pip

3、freeze

pip freeze,查看已經(jīng)安裝的包及版本信息。

Python pip 常用命令匯總

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

Python pip 常用命令匯總

4、list

Python pip 常用命令匯總

查詢可升級(jí)的包

pip list -o

Python pip 常用命令匯總

5、show

顯示包所在目錄及信息

Python pip 常用命令匯總

6、search

搜索包

pip search <搜索關(guān)鍵字>

以上就是Python pip 常用命令匯總的詳細(xì)內(nèi)容,更多關(guān)于Python pip 常用命令的資料請(qǐng)關(guān)注好吧啦網(wǎng)其它相關(guān)文章!

標(biāo)簽: Python 編程
相關(guān)文章:
主站蜘蛛池模板: 国产精品美女久久久久aⅴ国产馆 | 国产欧美性成人精品午夜 | 91久久久久久 | 天天干天天操天天射 | 成人av播放 | 成人一区二区三区在线观看 | 一区二区三区 在线 | 亚洲欧美综合精品另类天天更新 | 在线观看亚洲 | 国产精品久久久久久婷婷天堂 | 日日草夜夜草 | 日本精品在线一区 | 欧美性受xxx | 欧美大片一区 | 免费一级黄 | 精品欧美一区二区精品久久 | 国产一级在线观看 | 亚洲一区二区三区在线观看免费 | 日韩中文在线 | 成人区精品一区二区婷婷 | 亚洲二区视频 | 精品一区在线 | 国产精品美女在线观看 | 亚洲精品女人久久久 | 欧美成人精品一区二区男人看 | av网站免费| 一区二区三区视频免费看 | 国产精品一区二区三区久久 | 欧美三区视频 | 综合色播 | 羞羞视频网站免费观看 | 国产亚洲精品久久久久动 | 国产免费一区二区三区 | 蜜桃一区二区三区 | 自拍偷拍亚洲欧美 | 久久久久无码国产精品一区 | 精品综合久久久 | 精品乱子伦一区二区三区 | 国产精品96久久久久久 | 国产精品久久国产精品 | 男女网站免费 |