pip安装非标准版本号库报错 pip 24.1 will enforce this behaviour change.

在做神经网络作业安装tensorflow报错

pyodbc 4.0.0-unsupported has a non-standard version number. pip 24.1 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of pyodbc or contact the author to suggest that they release a version with a conforming version number. Discussion can be found at https://github.com/pypa/pip/issues/12063

报错中提到从pip版本24.1开始,将会强制执行标准版本号的行为变更。意思就是非标准版本号的pyodbc库可能无法与未来的pip版本兼容,用pip指令安装会出问题

  1. 升级pip: 在命令行中运行以下

    pip install --upgrade pip
    
  2. 确认pip的版本是否成功更新

    pip --version
    
  3. 升级pyodbc库

    pip install --upgrade pyodbc
    
  4. 确认pyodbc的版本是否更新

    pip show pyodbc
    

你可能感兴趣的:(pip,python,机器学习,神经网络)