我应该如何从spyder安装python的deap包?
我已经尝试过:
pip install deal
import deap
deap.download()
假设未安装 deap,请输入:
pip install deap
如果您收到回复
Collecting deap
Installing collected packages: deap
Successfully installed deap-1.0.2
那么您刚刚安装了 deap,就可以将它
import
添加到您的项目中了。
如果您收到回复,
Requirement already satisfied (use --upgrade to upgrade): deap in ./Path/To/site-packages
,deap 已安装,您可以准备import
。
当我尝试了导入模块的所有步骤时,kindle 帮助我解决了这个问题!
Collecting deap
Using cached deap-1.4.1.tar.gz (1.1 MB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'error'
ERROR: Error [WinError 225] Operation did not complete successfully because the file contains a virus or potentially unwanted software while executing command python setup.py egg_info
ERROR: Could not install packages due to an OSError: [WinError 225] Operation did not complete successfully because the file contains a virus or potentially unwanted software