当前位置:网站首页>CVXPY——最新版问题
CVXPY——最新版问题
2022-07-15 16:31:00 【不懂音乐的欣赏者】
问题
CVXPY可以成功安装上,运行代码时提示:
RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd
问题在于最新版CVXPY需要numpy1.20及以上版本,但是系统上安装的numpy低于1.20。
解决方案
查看当前numpy版本
可以通过下面代码查询numpy的版本:
pip show numpy
运行结果如下图:
numpy升级
pip install -U numpy
顺便说下numpy怎么降级(下面这个不用运行)
pip install -U numpy==1.12.0
后面的1.12.0是需要降级的版本号
之后重新安装CVXPY即可。
边栏推荐
- Animation and encapsulation (offset, client, scroll series)
- fink.15 DataSet模块 算子大全
- [golang] heap structure template based on go language
- @RequestBody
- 24. 两两交换链表中的节点
- 【30天30个小项目】菜单悬停动画
- Functions and symbols
- R语言使用nnet包的multinom函数构建无序多分类logistic回归模型、使用exp函数、confint函数、coef函数获取模型中每个变量(自变量改变一个单位)对应的优势比
- 软件研发效能需求价值流分析专题
- R language uses the multinom function of NNET package to build an unordered multi classification logistic regression model, and uses exp function, confint function and coef function to obtain the corr
猜你喜欢

2pc and 3pc of consistency agreement

leetcode:240. Search 2D matrix II

函数与箭头函数

Among the top 50 intelligent operation and maintenance enterprises in 2022, Borui data strength was selected

函数高级应用

leetcode:74. 搜索二维矩阵

Together with Alibaba cloud, grafana labs will provide the first grafana hosting service in China

MySQL CREATE TABLE statement error: 1103 incorrect table name

leetcode:330. 按要求补齐数组
![The INI file configuration should be modified during Jerry's mode [chapter]](/img/0a/bc74c25d0243afba27831901a856c9.png)
The INI file configuration should be modified during Jerry's mode [chapter]
随机推荐
虹科案例|nanoGUNE应用Onyx系统实现石墨烯电学性质的无损表征
[C #] commonly used utils
24. 两两交换链表中的节点
Diwen serial port screen tutorial (2)
dried food! Teach you how to build a highly available architecture
智能工厂名词解释
Application of Tupu web visualization engine in simulation analysis field
The difference between Es5 and ES6
Matlab-mex
[leetcode] 26. Delete duplicates in the ordered array
【LeetCode】26、删除有序数组中的重复项
Comment définir Notepad + + comme mode d'ouverture par défaut
R language ggplot2 visualization: use the ggstripchart function of ggpubr package to visualize the dot strip plot, set the position parameter to configure the separation of different grouped data poin
Set与Map的区别
room android sqlite
Practice of online problem feedback module (II): automatic generation of class file by encapsulating code
FFmpeg 音视频解封装
Practice of online problem feedback module (III): automatically generate all controller, service, mapper and other files
Extrait d'un bon article
物理学\数学中常用的“等号”