python - 无法安装 Ball 模块
问题描述
我在安装 Ball 模块时遇到了很多麻烦,我在 Windows 10 上运行最新版本的 pip、python 和 im。这是错误:
pip install ball
`Collecting ball
Using cached Ball-0.2.9.tar.gz (348 kB)
Requirement already satisfied: numpy in c:\users\davis\appdata\local\programs\python\python39\lib\site-packages (from ball) (1.19.5)
Requirement already satisfied: scikit-learn in c:\users\davis\appdata\local\programs\python\python39\lib\site-packages (from ball) (0.24.0)
Requirement already satisfied: pygam in c:\users\davis\appdata\local\programs\python\python39\lib\site-packages (from ball) (0.8.0)
Requirement already satisfied: progressbar2 in c:\users\davis\appdata\local\programs\python\python39\lib\site-packages (from pygam->ball) (3.53.1)
Requirement already satisfied: scipy in c:\users\davis\appdata\local\programs\python\python39\lib\site-packages (from pygam->ball) (1.6.0)
Requirement already satisfied: future in c:\users\davis\appdata\local\programs\python\python39\lib\site-packages (from pygam->ball) (0.18.2)
Requirement already satisfied: six in c:\users\davis\appdata\local\programs\python\python39\lib\site-packages (from progressbar2->pygam->ball) (1.15.0)
Requirement already satisfied: python-utils>=2.3.0 in c:\users\davis\appdata\local\programs\python\python39\lib\site-packages (from progressbar2->pygam->ball) (2.4.0)
Requirement already satisfied: joblib>=0.11 in c:\users\davis\appdata\local\programs\python\python39\lib\site-packages (from scikit-learn->ball) (1.0.0)
Requirement already satisfied: threadpoolctl>=2.0.0 in c:\users\davis\appdata\local\programs\python\python39\lib\site-packages (from scikit-learn->ball) (2.1.0)
Using legacy 'setup.py install' for ball, since package 'wheel' is not installed.
Installing collected packages: ball
Running setup.py install for ball ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\davis\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Davis\\AppData\\Local\\Temp\\pip-install-0abie82x\\ball_2fc4c2cf6ca545768116429af36f95b5\\setup.py'"'"'; __file__='"'"'C:\\Users\\Davis\\AppData\\Local\\Temp\\pip-install-0abie82x\\ball_2fc4c2cf6ca545768116429af36f95b5\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Davis\AppData\Local\Temp\pip-record-ly4riu7c\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\davis\appdata\local\programs\python\python39\Include\ball'
cwd: C:\Users\Davis\AppData\Local\Temp\pip-install-0abie82x\ball_2fc4c2cf6ca545768116429af36f95b5\
Complete output (18 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\Ball
copying Ball\bcorsis.py -> build\lib.win-amd64-3.9\Ball
copying Ball\bcov.py -> build\lib.win-amd64-3.9\Ball
copying Ball\bd.py -> build\lib.win-amd64-3.9\Ball
copying Ball\cball.py -> build\lib.win-amd64-3.9\Ball
copying Ball\utilize.py -> build\lib.win-amd64-3.9\Ball
copying Ball\wrap_c.py -> build\lib.win-amd64-3.9\Ball
copying Ball\__init__.py -> build\lib.win-amd64-3.9\Ball
running build_ext
building 'Ball._cball' extension
swigging src/cball.i to src/cball_wrap.c
swig.exe -python -o src/cball_wrap.c src/cball.i
error: command 'swig.exe' failed: None
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\davis\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Davis\\AppData\\Local\\Temp\\pip-install-0abie82x\\ball_2fc4c2cf6ca545768116429af36f95b5\\setup.py'"'"'; __file__='"'"'C:\\Users\\Davis\\AppData\\Local\\Temp\\pip-install-0abie82x\\ball_2fc4c2cf6ca545768116429af36f95b5\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Davis\AppData\Local\Temp\pip-record-ly4riu7c\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\davis\appdata\local\programs\python\python39\Include\ball' Check the logs for full command output.`
解决方案
推荐阅读
- arrays - Excel从具有多个条目的列表中随机选择名称,并填写每组行不重复名称多次的列
- sql - 我是否以正确的方式将此数据库标准化为 3NF 级别?
- c# - 当我尝试使用 C# 在 Oracle 数据库中使用占位符更新时间戳列时,应用程序冻结
- python-3.x - TypeError:“int”类型的对象在目标函数非线性优化 Gekko 中没有 len()
- mongodb - MongoDB 时间 小时和分钟的差异
- xaml - 以渐变为背景的 XAML 全局样式
- ios - 尽管使用了 safeAreaLayoutGuide,但以编程方式在视图中创建约束并不是导航控制器的原因
- typescript - 为什么我的 Firebase Functions 模拟器没有运行我在 Typescript 中所做的更改?
- ios - 为什么 `Podfile.lock` 会更改 `pod install` 上的 `SPEC CHECKSUMS` 部分,而没有任何更改?
- python - 从 www.NSEINDIA.com wesbite 抓取时结果为空