环境- Windows 7企业(Service Pack 1)
流程
已安装git
配置了用于git的user.name和user.email
安装nodejs
node version - 8.11.3
npm version - 6.4.0
安装Python2.7.3
added environement variable and updated path statement
安装Visual 2015社区版本
installed Visual C== 2015 Tools for Windows Desktop
installed Windows XP Support for C++
当我运行这段代码时,我得到一个错误,我无法识别并获得解决方案。如果有人能给我一个解决这个错误的方法,那将对我有很大的帮助。我使用的是python 3.5.2、tensorflow版本1.4.0、keras 2.1.2、pandas版本0.21.1和scikit-learn版本0.19.1。我在空闲的ide中运行这个。代码是:
import numpy
import pandas
from keras.models import Sequential
from keras.layers import Dense
from keras.wrappers.scikit_learn import K
这里有生产者-消费者图。图的拓扑排序是T。我想在拓扑排序T中添加额外的节点,并改变T中的顺序。这里假设消费者关系比生产者关系具有更高的优先级。
我能想到的解决方案是:
For new node N:
check the last producer in the T for which N is consumer. Let it be T1
check the last consumer in T for which N is producer. Let it be I2.
If I1 < I2, add N after I1
If I1 > I2,
我正在尝试实现Trident+DRPC。我设计了拓扑结构,使其不会无限运行。我有两个独立的类,一个用于spout实现,另一个用于实现DRPC和Trident。我的spout类(扩展IRichSpout的spout )发出客户的id。即
public class TriSpout implements IRichSpout{
//some logic here
spoutOutputCollector.emit(new Values(id))
}
现在,我从输出收集器的另一个类中获得了值,这个类用DRPC实现了Trident。
public class TriDrpc{
我知道您可以在类Unix操作系统上以Vi模式使用Python shell。例如,我的~/.inputrc中有这一行
set editing-mode vi
这让我可以在Python shell中使用Vi风格的编辑。
但是,当在Windows XP系统上使用Python时,这能正常工作吗?我使用的是直接从python.org下载的预建Python for Windows。
我猜Windows版本没有使用GNU Readline库,但我很高兴被证明是错的。:)