【发布时间】:2021-01-06 05:57:17
【问题描述】:
(venv) (base) matthewpark@Matthews-MBP game % pip install ball
Collecting ball
Using cached Ball-0.2.9.tar.gz (348 kB)
ERROR: Command errored out with exit status 1:
command: /Users/matthewpark/PycharmProjects/game/venv/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/xg/q1x0qzfn35588jpnk5b253zm0000gn/T/pip-install-smw00u2m/ball/setup.py'"'"'; __file__='"'"'/private/var/folders/xg/q1x0qzfn35588jpnk5b253zm0000gn/T/pip-install-smw00u2m/ball/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/xg/q1x0qzfn35588jpnk5b253zm0000gn/T/pip-pip-egg-info-y5008n2o
cwd: /private/var/folders/xg/q1x0qzfn35588jpnk5b253zm0000gn/T/pip-install-smw00u2m/ball/
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/xg/q1x0qzfn35588jpnk5b253zm0000gn/T/pip-install-smw00u2m/ball/setup.py", line 6, in <module>
import numpy as np
ModuleNotFoundError: No module named 'numpy'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
(venv) (base) matthewpark@Matthews-MBP game %
【问题讨论】:
-
错误消息显示
ModuleNotFoundError: No module named 'numpy'。安装球前需要安装numpy
标签: python python-3.x macos installation pip