提出问题-无法建立专案

时间:2019-08-12 09:05:00

标签: python visual-studio visual-c++ gnu-make gnu

我正在尝试运行以下代码。 (Windows,在Linux上也有问题,这个问题在Windows上。)

https://github.com/tvayer/PSCN

执行此部分时:

要安装pynauty:

转到文件夹pynauty-0.6.0 建立pynauty:“使pynauty” 设置用户:“使用户输入pynauty” 安装:“ pip install。”

我将NAUTY_DIR = nauty更改为NAUTY_DIR = nauty27rc1,因为nauty是文件而不是目录,并且我收到此错误:

yehonata@YEHONATA-TP MINGW64 ~/PycharmProjects/PSCN-master/pynauty-0.6.0
$ make pynauty
cd nauty27rc1; make nauty.o nautil.o naugraph.o schreier.o naurng.o
make[1]: Entering directory `C:/Users/yehonata/PycharmProjects/PSCN-master/pynauty-0.6.0/nauty27rc1'
make[1]: `nauty.o' is up to date.
make[1]: `nautil.o' is up to date.
make[1]: `naugraph.o' is up to date.
make[1]: `schreier.o' is up to date.
make[1]: `naurng.o' is up to date.
make[1]: Leaving directory `C:/Users/yehonata/PycharmProjects/PSCN-master/pynauty-0.6.0/nauty27rc1'
python setup.py build
running build
running build_py
creating build
creating build\lib.win32-2.7
creating build\lib.win32-2.7\pynauty
copying src\graph.py -> build\lib.win32-2.7\pynauty
copying src\__init__.py -> build\lib.win32-2.7\pynauty
running build_ext
building 'pynauty.nautywrap' extension
creating build\temp.win32-2.7
creating build\temp.win32-2.7\Release
creating build\temp.win32-2.7\Release\src
C:\mingw\bin\gcc.exe -mdll -O -Wall -Inauty -Isrc -IC:\Python27\include -IC:\Python27\PC -c src/nautywrap.c -o build\temp.win32-2.7\Release\src\nautywrap.o -O4 -fPIC
cc1.exe: error: nauty: not a directory
src/nautywrap.c:1: warning: -fPIC ignored for target (all code is position independent)
error: command 'C:\\mingw\\bin\\gcc.exe' failed with exit status 1
make: *** [pynauty] Error 1

我在这里想念什么? 如何运行此代码?

我还在这里打开了一些问题: https://github.com/tvayer/PSCN/issues/9 https://github.com/tvayer/PSCN/issues/8

谢谢

0 个答案:

没有答案