anaconda虚拟环境安装cvxpy报错

通过终端激活虚拟环境,命令:pip install cvxpy
出错结果

C:\Users\CQUT>activate tensorflow

(tensorflow) C:\Users\CQUT>pip install cvxpy
Collecting cvxpy
  Downloading http://pypi.doubanio.com/packages/7b/1a/48a8fad5e845c5b1a8bb3c718ff5b2f08a7cc61cf7111cd9fd6865ce386e/cvxpy-1.1.15-cp36-cp36m-win_amd64.whl (846kB)
    100% |████████████████████████████████| 849kB 6.8MB/s
Requirement already satisfied: numpy>=1.15 in d:\users\cqut\anaconda3\envs\tensorflow\lib\site-packages (from cvxpy)
Requirement already satisfied: osqp>=0.4.1 in d:\users\cqut\anaconda3\envs\tensorflow\lib\site-packages (from cvxpy)
Requirement already satisfied: scipy>=1.1.0 in d:\users\cqut\anaconda3\envs\tensorflow\lib\site-packages (from cvxpy)
Collecting ecos>=2 (from cvxpy)
  Downloading http://pypi.doubanio.com/packages/09/3c/3a3165d7f1bd0b7a06ba4df4962ac3f1f88079252eb77b6da8ebd8de07b9/ecos-2.0.7.post1-cp36-cp36m-win_amd64.whl (67kB)
    100% |████████████████████████████████| 71kB 23.6MB/s
Collecting scs>=1.1.6 (from cvxpy)
  Downloading http://pypi.doubanio.com/packages/5f/f3/7e11e9c0dc22c2bf2e8b4be1ade4fb8055dbe9ea29fd9bda455844b9d7ca/scs-2.1.4.tar.gz (6.6MB)
    100% |████████████████████████████████| 6.6MB 25.4MB/s
Requirement already satisfied: qdldl in d:\users\cqut\anaconda3\envs\tensorflow\lib\site-packages (from osqp>=0.4.1->cvxpy)
Building wheels for collected packages: scs
  Running setup.py bdist_wheel for scs ... error
  Failed building wheel for scs
  Running setup.py clean for scs
Failed to build scs
Installing collected packages: ecos, scs, cvxpy
  Running setup.py install for scs ... error
Exception:
Traceback (most recent call last):
  File "D:\Users\CQUT\anaconda3\envs\tensorflow\lib\site-packages\pip\compat\__init__.py", line 73, in console_to_str
    return s.decode(sys.__stdout__.encoding)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc3 in position 4: invalid continuation byte

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\Users\CQUT\anaconda3\envs\tensorflow\lib\site-packages\pip\basecommand.py", line 215, in main
    status = self.run(options, args)
  File "D:\Users\CQUT\anaconda3\envs\tensorflow\lib\site-packages\pip\commands\install.py", line 342, in run
    prefix=options.prefix_path,
  File "D:\Users\CQUT\anaconda3\envs\tensorflow\lib\site-packages\pip\req\req_set.py", line 784, in install
    **kwargs
  File "D:\Users\CQUT\anaconda3\envs\tensorflow\lib\site-packages\pip\req\req_install.py", line 878, in install
    spinner=spinner,
  File "D:\Users\CQUT\anaconda3\envs\tensorflow\lib\site-packages\pip\utils\__init__.py", line 676, in call_subprocess
    line = console_to_str(proc.stdout.readline())
  File "D:\Users\CQUT\anaconda3\envs\tensorflow\lib\site-packages\pip\compat\__init__.py", line 75, in console_to_str
    return s.decode('utf_8')
UnicodeDecodeError: 'utf-8' codec can't decod

你可能感兴趣的:(笔记,tensorflow,人工智能,python)