赞
踩
在pycharm中直接下载skopt时失败,网上有如下解决办法:
在python当前位置执行下载,
1.先安装scikit-optimize
pip install scikit-optimize
后直接在pycharm中安装skopt成功
若不成功,
2.安装
git clone https://bitbucket.org/stanmarkov/skopt/
转到skopt目录,执行
pip3 install --upgrade --user -r requirements.txt -e .
requirements.txt文件用于记录依赖包和版本号,安装其依赖包。若报错,Could not find a version that satisfies the requirement deap (from versions: none) ,执行
pip install deap -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
安装缺失的内容,
pip3 install --upgrade --user -r requirements.txt -e .执行若报错,Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ProxyError(‘Cannot connect to proxy.’, OSError(0, ‘Error’))’: /simple/matplotlib/</
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。