尝试通过pip安装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 is missing。但我使用conda安装make:
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
所以我已经安装了mingw 4.7。
如何删除错误并获取包裹?
非常感谢你的帮助。
答案 0 :(得分:1)
make
不在您的路径中。
执行echo %PATH%
并检查msys实用程序的路径是否在那里。否则,您可以按照此处的说明编辑此变量:Adding directory to PATH Environment Variable in Windows