简体   繁体   English

导入错误和未定义符号:dgesv_ 使用 PIP 安装 CVXPY 时出错

[英]Import Error and Undefined symbol: dgesv_ Error on installing CVXPY with PIP

I crate a new virtual environment using "virtualenv -p python3 env-name" and then pip install cvxpy.我使用“virtualenv -p python3 env-name”创建了一个新的虚拟环境,然后 pip 安装 cvxpy。 All works fine.一切正常。 However, when I type the code "import cvxpy" I get the following error:但是,当我键入代码“import cvxpy”时,出现以下错误:

ImportError: "..../env-name/lib/python3.8/site-packages/ scs_direct.cpython-38-x86_64-linux-gnu.so": undefined symbol: dgesv ImportError:“..../env-name/lib/python3.8/site-packages/ scs_direct.cpython-38-x86_64-linux-gnu.so”:未定义符号:dgesv

I have tried directly installing cvxpy from source.我试过直接从源代码安装 cvxpy。 It gives the same error.它给出了同样的错误。 What am I missing?我错过了什么?

Try using this for installation in the required virtual environment if using anaconda:如果使用 anaconda,请尝试在所需的虚拟环境中安装:

conda install -c conda-forge cvxpy

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM