大家好
我寫這題 https://imgur.com/NjXQp5T
import cvxpy和qcqp時出現了下面error
ImportError: cannot import name 'logsumexp' from 'scipy.misc'
(C:\Users\ASUS\anaconda3\lib\site-packages\scipy\misc\__init__.py)
查了google看到logsumexp已經移到scipy.special
要把scipy downgrade到1.2.1版本才會在scipy.misc
所以我試著把sicpy降級
pip install scipy==1.2.1
出現了以下error
ERROR: Command errored out with exit status 1:
'C:\Users\ASUS\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize;
sys.argv[0] =
'"'"'C:\\Users\\ASUS\\AppData\\Local\\Temp\\pip-install-vbzm367e\\scipy_be91b562048d490b8443345eddef9e64\\setup.py'"'"';
__file__='"'"'C:\\Users\\ASUS\\AppData\\Local\\Temp\\pip-install-vbzm367e\\scipy_be91b562048d490b8443345eddef9e64\\setup.py'"'"';f=getattr(tokenize,
'"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"',
'"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))'
install