Python: pip install 常用模块

  • pip install png

ERROR: Could not find a version that satisfies the requirement png (from versions: none) ERROR: No matching distribution found for png

需要执行pip install pypng

Collecting pypng

  Downloading pypng-0.20220715.0-py3-none-any.whl (58 kB)

     ---------------------------------------- 58.1/58.1 kB 278.0 kB/s eta 0:00:00

Installing collected packages: pypng

Successfully installed pypng-0.20220715.0

以此类推,其他的一些模块也适用,比如error提示缺少usb, 可以执行pip install pyusb安装

  • λ pip install numpy

ERROR: Operation cancelled by user

需要多等一会,别打断它

  • pip install numpy

Collecting numpy

  Obtaining dependency information for numpy from https://files.pythonhosted.org/packages/97/43/4cd9dc8c051537ed0613fcfc4229dfb9eb39fe058c8d42632977465bfdb5/numpy-1.26.0-cp39-cp39-win_amd64.whl.metadata

  Downloading numpy-1.26.0-cp39-cp39-win_amd64.whl.metadata (61 kB)

     ---------------------------------------- 61.1/61.1 kB 807.0 kB/s eta 0:00:00

Downloading numpy-1.26.0-cp39-cp39-win_amd64.whl (15.8 MB)

   ---------------------------------------- 15.8/15.8 MB 16.0 kB/s eta 0:00:00

Installing collected packages: numpy

  WARNING: The script f2py.exe is installed in 'xxxx\Python\Python39\Scripts' which is not on PATH.  需要把“xxxx\Python\Python39\Scripts”加进环境变量的path里。

  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

Successfully installed numpy-1.26.0

  • 错误提示是ModuleNotFoundError: No module named 'usb':需要执行Pip install pyusb

  • 更新pip版本: python -m pip install --upgrade pip

Requirement already satisfied: pip in c:\users\eduan\appdata\local\programs\python\python39\lib\site-packages (23.2.1)

  • λ pip install psutil

Collecting psutil

  Downloading psutil-5.9.5-cp36-abi3-win_amd64.whl (255 kB)

     ---------------------------------------- 255.1/255.1 kB 41.3 kB/s eta 0:00:00

Installing collected packages: psutil

Successfully installed psutil-5.9.5

  • λ pip install easygui

Collecting easygui

  Downloading easygui-0.98.3-py2.py3-none-any.whl (92 kB)

     ---------------------------------------- 92.7/92.7 kB 155.2 kB/s eta 0:00:00

Installing collected packages: easygui

Successfully installed easygui-0.98.3

  • λ pip install wget

Collecting wget

  Downloading wget-3.2.zip (10 kB)

  Installing build dependencies ... done

  Getting requirements to build wheel ... done

  Preparing metadata (pyproject.toml) ... done

Building wheels for collected packages: wget

  Building wheel for wget (pyproject.toml) ... done

  Created wheel for wget: filename=wget-3.2-py3-none-any.whl size=9680 sha256=e5edeed76a40c07c1b2c36f94e307dbfae79e7ebcd7d3a351aba43ba7b65b8b3

  Stored in directory: c:\users\eduan\appdata\local\pip\cache\wheels\04\5f\3e\46cc37c5d698415694d83f607f833f83f0149e49b3af9d0f38

Successfully built wget

Installing collected packages: wget

Successfully installed wget-3.2

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值