所以我試圖pip install bottleneck在命令 promt 中安裝瓶頸(通過做),我不斷收到錯誤: ERROR: Command errored out with exit status 1: command: 'c:\users\benito\appdata\local\programs\python\python36\python.exe' 'c:\users\benito\appdata\local\programs\python\python36\lib\site-packages\pip\_vendor\pep517\_in_process.py' build_wheel 'C:\Users\Benito\AppData\Local\Temp\tmp3cb_deoe' cwd: C:\Users\Benito\AppData\Local\Temp\pip-install-hrd3bsvr\bottleneck Complete output (51 lines): running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-3.6 creating build\lib.win-amd64-3.6\bottleneck copying bottleneck\_pytesttester.py -> build\lib.win-amd64-3.6\bottleneck copying bottleneck\_version.py -> build\lib.win-amd64-3.6\bottleneck copying bottleneck\__init__.py -> build\lib.win-amd64-3.6\bottleneck creating build\lib.win-amd64-3.6\bottleneck\benchmark copying bottleneck\benchmark\autotimeit.py -> build\lib.win-amd64-3.6\bottleneck\benchmark copying bottleneck\benchmark\bench.py -> build\lib.win-amd64-3.6\bottleneck\benchmark copying bottleneck\benchmark\bench_detailed.py -> build\lib.win-amd64-3.6\bottleneck\benchmark copying bottleneck\benchmark\__init__.py -> build\lib.win-amd64-3.6\bottleneck\benchmark creating build\lib.win-amd64-3.6\bottleneck\slow copying bottleneck\slow\move.py -> build\lib.win-amd64-3.6\bottleneck\slow copying bottleneck\slow\nonreduce.py -> build\lib.win-amd64-3.6\bottleneck\slow copying bottleneck\slow\nonreduce_axis.py -> build\lib.win-amd64-3.6\bottleneck\slow copying bottleneck\slow\reduce.py -> build\lib.win-amd64-3.6\bottleneck\slow copying bottleneck\slow\__init__.py -> build\lib.win-amd64-3.6\bottleneck\slow creating build\lib.win-amd64-3.6\bottleneck\src我還安裝了 Microsoft Visual C++ 14.0,重置我的計算機并啟動程序并在程序中做了同樣的事情,我得到了同樣的錯誤。我也完成了pip install wheel,然后完成了pip install bottleneck,我收到了同樣的錯誤。我也有python 3.6
3 回答

紫衣仙女
TA貢獻1839條經驗 獲得超15個贊
嘗試在 Windows 機器上安裝 pycaret 時我也遇到了同樣的問題。得到錯誤
ERROR: Failed building wheel for bottleneck
Failed to build bottleneck
ERROR: Could not build wheels for bottleneck which use PEP 517 and cannot be installed directly
讀取輸出表明安裝過程無法安裝瓶頸,因此您必須手動執行此操作。Pip 沒有這樣做,所以因為我使用的是 Anaconda env,所以 conda install 是要走的路。安裝 p5py 和 pep517 也是一個好主意。
我可以通過以下步驟解決問題:
conda 安裝瓶頸
點安裝 p5py
點安裝 pep517
點安裝 pycaret

慕桂英546537
TA貢獻1848條經驗 獲得超10個贊
我通過使用該站點的相應輪子手動安裝瓶頸來使其工作:www.lfd.uci.edu/~gohlke/pythonlibs/。
只需下載適用于您的 Python 版本的文件(在我的情況下為 Bottleneck?1.3.2?cp38?cp38?win_amd64.whl)并安裝它:
pip install C:\Users\...

侃侃無極
TA貢獻2051條經驗 獲得超10個贊
首先安裝 PyPI 然后 pyinstaller 你需要做的就是
pip install PyPI pip install pyinstaller
PyPI 安裝屏幕截圖
添加回答
舉報
0/150
提交
取消