pip - 为什么我不能从源代码安装这个包?

pip - 为什么我不能从源代码安装这个包?

我用 git clone 了这个仓库https://github.com/bulletphysics/bullet3并添加了一条无害的打印线,但无法从源代码安装它,即下面的命令

git clone https://github.com/bulletphysics/bullet3
cd bullet3
pip install .

返回错误

...
examples/pybullet/pybullet.c(11954): warning C4244: 'initializing': conversion from 'Py_ssize_t' to 'int', possible loss of data    
examples/pybullet/pybullet.c(12132): warning C4244: 'initializing': conversion from 'Py_ssize_t' to 'int', possible loss of data
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit status 2
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\ha_ha\anaconda3\envs\mogaze-source\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\ha_ha\\Desktop\\Haziq\\datasets\\mogaze-source\\bullet3\\setup.py'"'"'; __file__='"'"'C:\\Users\\ha_ha\\Desktop\\Haziq\\datasets\\mogaze-source\\bullet3\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps Check the logs for full command output.

怎么了?

相关内容