- python安装指定版本的包
bash
pip install package==version
- 查看包版本
bash
pip show <package_name>
- 运行main函数报 coreapi 错误
AssertionError: coreapi
must be installed for schema support.
错误解 pip install coreapi
- 修改 pip install 目录
有可能会没有,要自己手动建
bash
C://Users//账号//AppData//Romaing//Python//pip//pip.ini
- 修改 pip 配置源
bash
pip install mysqlclient -i https://pypi.tuna.tsinghua.edu.cn/simple
- Python was not found
解决"Python was not found; run without arguments to install from the Microsoft Store..."问题
环境变量里面移除C:\AppData\Local\Microsoft\WindowsApps
这个变量
- Could not build wheels for cx_Oracle
ERROR: Could not build wheels for cx_Oracle, which is required to install py:这个 cx_Oracle
安装失败主要是因为python版本过高,我改回 python 3.10.x