安装 Deap for Python (Spyder)

问题描述 投票:0回答:2

我应该如何从spyder安装python的deap包?

我已经尝试过:

pip install deal

import deap
deap.download()
python installation pip spyder deap
2个回答
1
投票

假设未安装 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


0
投票

当我尝试了导入模块的所有步骤时,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
© www.soinside.com 2019 - 2024. All rights reserved.