找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 158|回复: 0

[Python基础] Python第三方库的安装方式

[复制链接]

7

主题

0

回帖

156

积分

管理员

积分
156

最佳新人热心会员湖北省RedHat高手

发表于 2025-2-16 00:19 | 显示全部楼层 |阅读模式
1Pycharm线
      英File-->Settings-->Project:xxx-->Project Interpreter
      中-->-->:xxx-->Python
20250424165240003.jpg

2pip线
      cmd-->pip install pip install requests
20250424170244004.jpg
      通/
            ①VPNFQ
            pip install -i pip install requests -i https://mirrors.aliyun.com/pypi/simple/
                                 
  1. 阿里云:https://mirrors.aliyun.com/pypi/simple/
  2. 腾讯云:https://mirrors.cloud.tencent.com/pypi/simple/
  3. 清华大学:https://pypi.tuna.tsinghua.edu.cn/simple/
  4. 中国科技大学:https://mirrors.ustc.edu.cn/pypi/simple/
复制代码
20250424170343005.jpg
            Python使pip令安装模块
               使
  1. # Windows系统
  2. pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
  3. # Linux/macOS系统
  4. pip3 config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
复制代码

3Python线
      ①线
     
      copyPython
      cmdPythonDD:
      cd线
      使python setup.py install

评分

参与人数 2ITB +100 贡献值 +10 收起 理由
Monkey + 50 + 5 原创性突出
Happy + 50 + 5 赞一个!

查看全部评分

Archiver|手机版|小黑屋|LTXIT家园 ( 鄂ICP备2025089526号|鄂公网安备42110002000175号 )

GMT+8, 2025-8-3 04:51 , Processed in 0.257398 second(s), 28 queries .

Powered by LTXIT家园 X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表