2017-08-02 134 views
0

當使用cygwin安裝打結器時,我遇到了這樣的問題。請幫我解決問題。我試圖以管理員身份進行安裝,但沒有幫助。我也嘗試了一些來自這個網站的建議。請任何人都可以幫助我?Kngter在CygWin上安裝

$ pip install knotter 
Collecting knotter 
    Using cached knotter-0.2.6.tar.gz 
Collecting aiohttp>=0.16.5 (from knotter) 
    Using cached aiohttp-2.2.3.tar.gz 
Collecting pandas>=0.16.2 (from knotter) 
    Using cached pandas-0.20.3.tar.gz 
    Complete output from command python setup.py egg_info: 
    /bin/sh: svnversion: command not found 
    /bin/sh: svnversion: command not found 
    non-existing path in 'numpy/distutils': 'site.cfg' 
    Could not locate executable g77 
    Could not locate executable f77 
    Could not locate executable ifort 
    Could not locate executable ifl 


1.13.1/numpy/distutils/command/build_src.py", line 377, in generate_sources 
      File "numpy/core/setup.py", line 674, in get_mathlib_info 
      'pandas.tests.io.json', 
     RuntimeError: Broken toolchain: cannot link a simple C program 
     /bin/bash: gcc: command not found 
     /bin/bash: gcc: command not found 

     ---------------------------------------- 
    Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-5ru8gzrw/pandas/ 

What should I do to solve this problem? 
+0

查看此鏈接:http://web.cecs.pdx.edu/~pkwong/ECE103_files/Resources/Compiler/C_GNU/GCC_Installation/How_to_Install_Cygwin+GCC.htm。你必須在你的環境中設置gcc。 – Dalton

+0

謝謝。我已經完成安裝打結器,但是我有其他問題。現在我無法運行我已安裝的Knotter。這些是使用cygwin運行打結器時顯示的代碼: – Yusuf

回答

0

看看this link

您必須在您的環境中設置gcc。在cygwin安裝,選擇下列程序:

GCC-芯:C編譯器子包

GCC-克++:C++分裝

的libgcc1:C運行時庫

GDB:GNU的調試器

make:'make'工具的GNU版本

我希望它有幫助。