CVXPY安装问题2(64位与32位的问题)

在解决scs的问题后,显示安装成功

DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Processing c:\users\dell\appdata\local\pip\cache\wheels\1b\43\00\83b44ffb5140bcbf418801ba833e24cdb23108a0dcc9105bf9\cvxpy-1.0.26-cp27-cp27m-win_amd64.whl
Requirement already satisfied: multiprocess in c:\python27\lib\site-packages (from cvxpy) (0.70.9)
Requirement already satisfied: ecos>=2 in c:\python27\lib\site-packages (from cvxpy) (2.0.7.post1)
Requirement already satisfied: osqp>=0.4.1 in c:\python27\lib\site-packages (from cvxpy) (0.6.1)
Requirement already satisfied: numpy>=1.15 in c:\python27\lib\site-packages (from cvxpy) (1.16.6)
Requirement already satisfied: scipy>=1.1.0 in c:\users\dell\appdata\roaming\python\python27\site-packages (from cvxpy) (1.2.3)
Requirement already satisfied: scs>=1.1.3 in c:\python27\lib\site-packages (from cvxpy) (1.2.7)
Requirement already satisfied: dill>=0.3.1 in c:\python27\lib\site-packages (from multiprocess->cvxpy) (0.3.1.1)
Requirement already satisfied: future in c:\python27\lib\site-packages (from osqp>=0.4.1->cvxpy) (0.18.2)
Installing collected packages: cvxpy
Successfully installed cvxpy-1.0.26

在使用时,from cvxpy import *   出现报错

from cvxpy import *
  File "C:\Python27\lib\site-packages\cvxpy\__init__.py", line 18, in <module>
    from cvxpy.atoms import *
  File "C:\Python27\lib\site-packages\cvxpy\atoms\__init__.py", line 17, in <module>
    from cvxpy.atoms.cummax import cummax
  File "C:\Python27\lib\site-packages\cvxpy\atoms\cummax.py", line 17, in <module>
    from cvxpy.atoms.atom import Atom
  File "C:\Python27\lib\site-packages\cvxpy\atoms\atom.py", line 18, in <module>
    from cvxpy import utilities as u
  File "C:\Python27\lib\site-packages\cvxpy\utilities\__init__.py", line 18, in <module>
    from . import grad
  File "C:\Python27\lib\site-packages\cvxpy\utilities\grad.py", line 19, in <module>
    import scipy.sparse as sp
  File "C:\Users\DELL\AppData\Roaming\Python\Python27\site-packages\scipy\__init__.py", line 119, in <module>
    from scipy._lib._ccallback import LowLevelCallable
  File "C:\Users\DELL\AppData\Roaming\Python\Python27\site-packages\scipy\_lib\_ccallback.py", line 1, in <module>
    from . import _ccallback_c
ImportError: DLL load failed: %1 不是有效的 Win32 应用程序。

python中的pywin32包出现了问题

可下载64位的whl文件离线安装

OK

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值