ModuleNotFoundError: No module named ‘skopt‘

C:\Users\cheng>pip install skopt
ERROR: Could not find a version that satisfies the requirement skopt (from versions: none)
ERROR: No matching distribution found for skopt

        解决方案:

pip install scikit-optimize

C:\Users\cheng>pip install scikit-optimize
Collecting scikit-optimize
  Downloading scikit_optimize-0.9.0-py2.py3-none-any.whl (100 kB)
     |████████████████████████████████| 100 kB 294 kB/s
Requirement already satisfied: scikit-learn>=0.20.0 in e:\anaconda3\lib\site-packages (from scikit-optimize) (0.22.1)
Collecting pyaml>=16.9
  Downloading pyaml-21.10.1-py2.py3-none-any.whl (24 kB)
Requirement already satisfied: scipy>=0.19.1 in e:\anaconda3\lib\site-packages (from scikit-optimize) (1.4.1)
Requirement already satisfied: numpy>=1.13.3 in e:\anaconda3\lib\site-packages (from scikit-optimize) (1.19.5)
Requirement already satisfied: joblib>=0.11 in e:\anaconda3\lib\site-packages (from scikit-optimize) (0.14.1)
Requirement already satisfied: PyYAML in e:\anaconda3\lib\site-packages (from pyaml>=16.9->scikit-optimize) (5.3)
Installing collected packages: pyaml, scikit-optimize
Successfully installed pyaml-21.10.1 scikit-optimize-0.9.0

上一篇:解决流只能读一次的问题,getInputStream() has already been called for this request


下一篇:Go——单元测试