python从安装与使用pip到入门
2023-09-11 14:16:35 时间
官方下载地址:https://www.python.org/downloads/
下载后直接安装就可以了
再配一下环境变量,
cmd运行python -V (注意,这里是大写的V)
打开python跑一跑
如同php的composer和js的npm,python有pip
先在命令行运行pip
如果命令不存在,把python安装目录下的Scripts(.../Python\Python36-32\Scripts)加入环境变量,重启cmd运行pip -V试试
新建一个hello.py
在cmd运行
当在执行pip install xxx.whl时,
1.出现 error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools"
安装 Microsoft visual c++ 14.0
https://964279924.ctfile.com/fs/1445568-239446865
https://964279924.ctfile.com/fs/1445568-239446865
2.有时会报缺少lxml
lxml下载地址:https://pypi.org/project/lxml/4.4.2/#files
3.可能出现is not a supported wheel on this platform
AMD64
import pip._internal print(pip._internal.pep425tags.get_supported())
相关文章
- Python 包管理工具 pip 安装 和 使用
- python之pip安装mysql-python失败
- Python 安装第三方库,超时报错--Read timed out 的两种解决方法(pip)
- Python pip安装第三方库的国内镜像
- 为什么现在Python在量化交易中这么火?
- Python安装及配置
- 在Windows下安装配置OpenCV-Python-PyCharm开发环境
- gyp ERR! stack Error: Can‘t find Python executable “python“, you can set the PYTHON env variable.
- Python 3.6 安装pip
- 《Python数据可视化编程实战》——1.3 安装virtualenv和virtualenvwrapper
- 【Linux学习笔记】解决:yum install python-dev 报错(CentOS安装Python-dev库)
- 最新系统centos安装最新版python 3.8.5以及pip换源、临时指定源,pytest安装后的使用以及出现pytest命令not found无法识别
- Python 03 pip 的安装和使用