我在我的mac电脑上安装了Malmo,遇到了麻烦。我使用的是Malmo-0.17.0-Mac-64bit,python2.7,macOS-Sierra。在
正如Malmo安装说明中所述,mac用户需要使用位于/usr/bin/python上的默认macpython运行python脚本。我打算用Pytorch实现一个神经网络并做一些实验。但是,当我运行命令/usr/bin/python -m pip install http://download.pytorch.org/whl/torch-0.2.0.post3-cp27-none-macosx_10_7_x86_64.whl
来安装Pytorch时,我遇到了以下错误:
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/c7/24z_lgxx4b7107ynf4cy34qh0000gn/T/pip-build-kLOmTh/pyyaml/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/c7/24z_lgxx4b7107ynf4cy34qh0000gn/T/pip-YxAJnq-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/c7/24z_lgxx4b7107ynf4cy34qh0000gn/T/pip-build-kLOmTh/pyyaml/
。在
我想知道是否有人遇到过同样的问题。在
非常感谢
我发现了问题所在。太蠢了。我只需要在命令的开头添加sudo。在
相关问题 更多 >
编程相关推荐