2016-09-16 163 views
2

在試圖安裝通過PIP Python包我得到的錯誤:無法安裝Python包

Failed building wheel for atari-py 
    Running setup.py clean for atari-py 
Failed to build atari-py 
Installing collected packages: atari-py, PyOpenGL 
    Running setup.py install for atari-py ... error 
    Complete output from command C:\Users\xxxxxx\AppData\Local\Continuum\Anaconda2\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\xxxxxx\\appdata\\local\\temp\\pip-build-qhuh1q\\atari-py\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\xxxxxx\appdata\local\temp\pip-z8wnzs-record\install-record.txt --single-version-externally-managed --compile: 
    running install 
    running build 
    Unable to execute 'make build -C atari_py/ale_interface -j 3'. HINT: are you sure `make` is installed? 
    error: [Error 2] The system cannot find the file specified 

在我的系統,當我鍵入make:

C:\Users\xxxxxx>make 
'make' is not recognized as an internal or external command, 
operable program or batch file. 

所以,清楚地辨認是失蹤。但我安裝make使用conda:

C:\Users\xxxxxx>conda install mingw 
Fetching package metadata ......... 
Solving package specifications: .......... 

# All requested packages already installed. 
# packages in environment at C:\Users\xxxxxx\AppData\Local\Continuum\Anaconda2: 
# 
mingw      4.7 

所以我已經安裝了4.7。

我該如何刪除錯誤並獲取包?

非常感謝您的幫助。

回答

1

make不在您的PATH中。 做echo %PATH%並檢查msys工具的路徑是否在那裏。否則,您可以按照以下說明編輯此變量:Adding directory to PATH Environment Variable in Windows

+0

如何獲取msys實用程序路徑? msys是在哪個文件夾..非常感謝您的幫助。 –

+0

謝謝,C:\ Users \ xxxxxx \ AppData \ Local \ Continuum \ Anaconda2 \ MinGW是我的MingW路徑,將它添加到路徑中並沒有幫助。 –

+0

我猜合適的路徑是C:\ Users \ xxxxxx \ AppData \ Local \ Continuum \ Anaconda2 \ MinGW \ bin,(附加\ bin在最後) – Guillaume