pip 另一种安装方法:python setup.py install
生活随笔
收集整理的這篇文章主要介紹了
pip 另一种安装方法:python setup.py install
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
????????最近在安裝prophet,使用'pip install prophet‘ 怎么安裝都不對(報錯信息附在最后【Requirement already satisfied和warning部分略去了】,如果有大神能指教一下,感激不盡~)
1 另一種安裝方法
先從prophet/python at main · facebook/prophet (github.com)中下載代碼(將網址復制到GitZip (kinolien.github.io)??
然后在對應的路徑上執(zhí)行python setup.py install 即可
檢驗結果
?
pip 報錯信息
pip install prophet Collecting prophetUsing cached prophet-1.0.1.tar.gz (65 kB)Preparing metadata (setup.py) ... done......c:\users\16000\appdata\local\programs\python\python37\lib\site-packages (from python-dateutil>=2.8.0->prophet) (1.15.0) Building wheels for collected packages: prophetBuilding wheel for prophet (setup.py) ... errorerror: subprocess-exited-with-error× python setup.py bdist_wheel did not run successfully.│ exit code: 1╰─> [1054 lines of output]running bdist_wheelrunning buildrunning build_pycreating buildcreating build\libcreating build\lib\prophetcreating build\lib\prophet\stan_model.....C:\Users\16000\AppData\Local\Temp\tmpyl7kw1p2\stanfit4anon_model_f5236004a3fd5b8429270d00efcc0cf9_7855577885934722650.cp37-win_amd64.pyd : fatal error LNK1120: 4 unresolved externalserror: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\link.exe' failed with exit status 1120[end of output]note: This error originates from a subprocess, and is likely not a problem with pip.ERROR: Failed building wheel for prophetRunning setup.py clean for prophet Failed to build prophet Installing collected packages: pystan, prophetAttempting uninstall: pystanFound existing installation: pystan 2.18.0.0Uninstalling pystan-2.18.0.0:Successfully uninstalled pystan-2.18.0.0Running setup.py install for prophet ... errorerror: subprocess-exited-with-error× Running setup.py install for prophet did not run successfully.│ exit code: 1╰─> [124 lines of output]running installrunning buildrunning build_pycreating buildcreating build\libcreating build\lib\prophetcreating build\lib\prophet\stan_model....Internal Compiler Error in C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe. You will be prompted to send an error report to Microsoft later.error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit status 2[end of output]note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure× Encountered error while trying to install package. ╰─> prophetnote: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure.總結
以上是生活随笔為你收集整理的pip 另一种安装方法:python setup.py install的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: statsmodels 笔记:seaso
- 下一篇: NTU 笔记 6422quiz 复习(1