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

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

AssertionError: coreapi must be installed for schema support.
错误解 pip install coreapi

  1. 修改 pip install 目录

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

C://Users//账号//AppData//Romaing//Python//pip//pip.ini
  1. 修改 pip 配置源
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

相关推荐

  1. python环境步骤记录

    2024-05-16 12:52:10       4 阅读
  2. python环境

    2024-05-16 12:52:10       48 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-05-16 12:52:10       5 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-05-16 12:52:10       5 阅读
  3. 在Django里面运行非项目文件

    2024-05-16 12:52:10       4 阅读
  4. Python语言-面向对象

    2024-05-16 12:52:10       6 阅读

热门阅读

  1. 40-2 了解与安装堡垒机

    2024-05-16 12:52:10       15 阅读
  2. Leetcode 404:左叶子之和

    2024-05-16 12:52:10       18 阅读
  3. 力扣:131. 分割回文串

    2024-05-16 12:52:10       16 阅读
  4. 力扣 72. 编辑距离 python AC

    2024-05-16 12:52:10       16 阅读
  5. 课时126:awk实践_进阶知识_内置函数1

    2024-05-16 12:52:10       19 阅读
  6. 【Python】学生管理系统

    2024-05-16 12:52:10       20 阅读
  7. 2024.5.15晚训题解

    2024-05-16 12:52:10       21 阅读