卓越飞翔博客卓越飞翔博客

卓越飞翔 - 您值得收藏的技术分享站
技术文章11201本站已运行3223

python依赖包安装

一、安装依赖包的三种方式
1、pip
2、源码安装
3、exe安装

二、pip安装
格式:pip install 包
注意:pip 安装包只能在 CMD 窗口安装!
pip3 install beautifulsoup4 -i https://pypi.tuna.tsinghua.edu.cn/simple
pip3 install PyExecJS -i https://pypi.tuna.tsinghua.edu.cn/simple
pip3 install cryptography -i https://pypi.tuna.tsinghua.edu.cn/simple
pip3 install cryptography -i https://pypi.tuna.tsinghua.edu.cn/simple
pip3 install aiohttp -i https://pypi.tuna.tsinghua.edu.cn/simple
pip3 install uvloop -i https://pypi.tuna.tsinghua.edu.cn/simple
pip3 install pymysql -i https://pypi.tuna.tsinghua.edu.cn/simple

三、源码安装
1、打开链接:https://pypi.org/project/
在这里插入图片描述
2、下载安装包
在这里插入图片描述
3、将包复制到${python}\scripts,进行解压
${python}为python的安装路径
在这里插入图片描述
4、在命令窗口cmd,进入到解压包路径下,进行安装:python setup.py install
在这里插入图片描述
5、安装成功
pip3 freeze/list查看

四、exe安装
切换到安装的exe目录,然后进行 *.exe pip
卓越飞翔博客
上一篇: WARNING: You are using pip version 21.1.3; however, version 23.0.1 is available.You should consider
下一篇: 申请新必应Newbing超详细教程!怎么打开聊天界面
留言与评论(共有 0 条评论)
   
验证码:
隐藏边栏