pkx*_*326 6 python installation pytables windows-10
这是我在这里的第一个问题。非常感谢您的支持。
我在 64 位 Windows 10 机器上使用 Python 3.9.1,我一直在尝试安装tables
软件包,pip install tables
但我总是遇到以下错误:
pip install tables
Collecting tables
Using cached tables-3.6.1.tar.gz (4.6 MB)
ERROR: Command errored out with exit status 1:
command: 'c:\users\acer\appdata\local\programs\python\python39\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Acer\\AppData\\Local\\Temp\\pip-install-u9bkjlwp\\tables_8a3121807beb4fde8d73782dff1f349e\\setup.py'"'"'; __file__='"'"'C:\\Users\\Acer\\AppData\\Local\\Temp\\pip-install-u9bkjlwp\\tables_8a3121807beb4fde8d73782dff1f349e\\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 'C:\Users\Acer\AppData\Local\Temp\pip-pip-egg-info-9_t31x9b'
cwd: C:\Users\Acer\AppData\Local\Temp\pip-install-u9bkjlwp\tables_8a3121807beb4fde8d73782dff1f349e\
Complete output (17 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\Acer\AppData\Local\Temp\pip-install-u9bkjlwp\tables_8a3121807beb4fde8d73782dff1f349e\setup.py", line 634, in <module>
libdir = compiler.has_function(package.target_function,
File "c:\users\acer\appdata\local\programs\python\python39\lib\distutils\ccompiler.py", line 792, in has_function
objects = self.compile([fname], include_dirs=include_dirs)
File "c:\users\acer\appdata\local\programs\python\python39\lib\distutils\_msvccompiler.py", line 323, in compile
self.initialize()
File "c:\users\acer\appdata\local\programs\python\python39\lib\distutils\_msvccompiler.py", line 220, in initialize
vc_env = _get_vc_env(plat_spec)
File "c:\users\acer\appdata\local\programs\python\python39\lib\site-packages\setuptools\msvc.py", line 313, in msvc14_get_vc_env
return _msvc14_get_vc_env(plat_spec)
File "c:\users\acer\appdata\local\programs\python\python39\lib\site-packages\setuptools\msvc.py", line 267, in _msvc14_get_vc_env
raise distutils.errors.DistutilsPlatformError(
distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
* Using Python 3.9.1 (tags/v3.9.1:1e5d33e, Dec 7 2020, 17:08:21) [MSC v.1927 64 bit (AMD64)]
* USE_PKGCONFIG: False
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/2b/32/847ee3f521aae6a0be380d923a736162d698586f444df1ac24b98c65025c/tables-3.6.1.tar.gz#sha256=49a972b8a7c27a8a173aeb05f67acb45fe608b64cd8e9fa667c0962a60b71b49 (from https://pypi.org/simple/tables/) (requires-python:>=3.5). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Run Code Online (Sandbox Code Playgroud)
我不明白错误消息,但我怀疑它与我的 Python 版本有关。
我确实安装了表格主页上建议的所有必备软件包,但在安装表格软件包时仍然出现错误。
我也尝试使用.whl 文件进行安装,但名称中没有包含 cp39 的文件(这使我得出结论,Python 3.9 尚无兼容版本,但我可能错了。)
有没有办法用 Python 3.9.1 安装表?非常感谢。
我已经从这个非官方 Windows 二进制文件存档下载并安装了tables-3.6.1-cp39-cp39-win_amd64.whl
安装它pip install tables-3.6.1-cp39-cp39-win_amd64.whl
更新
该软件包已从上述链接中删除。我找到了另一个来源: pypi.bartbroe.re/tables/
归档时间: |
|
查看次数: |
1237 次 |
最近记录: |