【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

相关推荐
anlogic3 小时前
Java基础 8.18
java·开发语言
喂完待续4 小时前
【Tech Arch】Spark为何成为大数据引擎之王
大数据·hadoop·python·数据分析·spark·apache·mapreduce
沐知全栈开发4 小时前
WebForms XML 文件详解
开发语言
阿巴~阿巴~4 小时前
冒泡排序算法
c语言·开发语言·算法·排序算法
王者鳜錸5 小时前
PYTHON让繁琐的工作自动化-猜数字游戏
python·游戏·自动化
看到我,请让我去学习6 小时前
QT - QT开发进阶合集
开发语言·qt
若天明6 小时前
深度学习-计算机视觉-微调 Fine-tune
人工智能·python·深度学习·机器学习·计算机视觉·ai·cnn
weixin_307779136 小时前
VS Code配置MinGW64编译SQLite3库
开发语言·数据库·c++·vscode·算法
倔强青铜三6 小时前
苦练Python第39天:海象操作符 := 的入门、实战与避坑指南
人工智能·python·面试
励志不掉头发的内向程序员7 小时前
STL库——string(类函数学习)
开发语言·c++