【Python】记录第一次接 python 项目搭建环境的问题

  1. python安装指定版本的包
bash 复制代码
pip install package==version
  1. 查看包版本
bash 复制代码
pip show <package_name>
  1. 运行main函数报 coreapi 错误

AssertionError: coreapi must be installed for schema support.

错误解 pip install coreapi

  1. 修改 pip install 目录

有可能会没有,要自己手动建

bash 复制代码
C://Users//账号//AppData//Romaing//Python//pip//pip.ini
  1. 修改 pip 配置源
bash 复制代码
pip install mysqlclient -i https://pypi.tuna.tsinghua.edu.cn/simple
  1. Python was not found

解决"Python was not found; run without arguments to install from the Microsoft Store..."问题

环境变量里面移除C:\AppData\Local\Microsoft\WindowsApps 这个变量

  1. 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

相关推荐
wj3055853785 小时前
课程 9:模型测试记录与 Prompt 策略
linux·人工智能·python·comfyui
为何创造硅基生物5 小时前
C语言 结构体内存对齐规则(通俗易懂版)
c语言·开发语言
吃好睡好便好5 小时前
在Matlab中绘制横直方图
开发语言·学习·算法·matlab
星寂樱易李5 小时前
iperf3 + Python-- 网络带宽、网速、网络稳定性
开发语言·网络·python
仰泳之鹅5 小时前
【C语言】自定义数据类型2——联合体与枚举
c语言·开发语言·算法
qingfeng154155 小时前
企业微信机器人开发:如何实现自动化与智能运营?
人工智能·python·机器人·自动化·企业微信
之歆6 小时前
DAY_12JavaScript DOM 完全指南(二):实战与性能篇
开发语言·前端·javascript·ecmascript
cen__y7 小时前
Linux12(Git01)
linux·运维·服务器·c语言·开发语言·git
AI人工智能+电脑小能手7 小时前
【大白话说Java面试题 第65题】【JVM篇】第25题:谈谈对 OOM 的认识
java·开发语言·jvm