pip安装Pytorch for usr/bin/python

2024-09-26 17:38:59 发布

您现在位置:Python中文网/ 问答频道 /正文

我在我的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/。在

我想知道是否有人遇到过同样的问题。在

非常感谢


Tags: installpipbinvarmacusrcodepytorch

热门问题