小编tal*_*904的帖子

配置:错误:C++ 编译器无法创建可执行文件

我正在尝试从https://sourceforge.net/projects/sserver/?source=typ_redirect安装 Robocup 模拟器。正如构建文件夹中的自述文件中所述,我必须执行 /.configure 但出现此错误。

saurabh@saurabh-GL502VM:~/intelligent_systems/project/rcssserver-15.3.0$ ./configure 
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking …
Run Code Online (Sandbox Code Playgroud)

c++ g++

6
推荐指数
1
解决办法
4万
查看次数

ImportError:libcudart.so.8.0:无法打开共享对象文件:没有这样的文件或目录

我想在我的系统上使用tensorflow-gpu.我重新安装了很多次,它给出了下面的错误.但是当我使用tensorflow-cpu时它工作正常.我安装了cuda 8.0工具包和cudnn 5.1.

  Traceback (most recent call last):
  File "finetune.py", line 17, in <module>
    import tensorflow as tf
  File "/home/saurabh/code/env/local/lib/python2.7/site-packages/tensorflow/__init__.py", line 24, in <module>
    from tensorflow.python import *
  File "/home/saurabh/code/env/local/lib/python2.7/site-packages/tensorflow/python/__init__.py", line 72, in <module>
    raise ImportError(msg)
ImportError: Traceback (most recent call last):
  File "/home/saurabh/code/env/local/lib/python2.7/site-packages/tensorflow/python/__init__.py", line 61, in <module>
    from tensorflow.python import pywrap_tensorflow
  File "/home/saurabh/code/env/local/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 28, in <module>
    _pywrap_tensorflow = swig_import_helper()
  File "/home/saurabh/code/env/local/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 24, in swig_import_helper
    _mod = imp.load_module('_pywrap_tensorflow', fp, pathname, description)
ImportError: libcudart.so.8.0: cannot open shared object file: …
Run Code Online (Sandbox Code Playgroud)

keras tensorflow

4
推荐指数
2
解决办法
1万
查看次数

如何在散点图的顶部绘制其他点?

我有panda数据帧作为df,有两个属性df.one(= x)和df.two(= y).现在,我想绘制这些数据点的散点图.我用了

ax1 = fig.add_subplot(111)
ax1.scatter(df.one,df.two,c = 'g',marker = 'o',alpha = 0.2)
Run Code Online (Sandbox Code Playgroud)

现在,我想绘制C给出的数据点的质心.我应该如何在上面的散点图上叠加质心?我试过了:

ax1.scatter(C[:,0],C[:,1],c = 'r',marker = 'x')
Run Code Online (Sandbox Code Playgroud)

但是它会覆盖散点图,我想覆盖它.是否持有期权,类似于matlab

python matplotlib pandas

3
推荐指数
1
解决办法
1万
查看次数

标签 统计

c++ ×1

g++ ×1

keras ×1

matplotlib ×1

pandas ×1

python ×1

tensorflow ×1