[英]Can not get SQLAlchemy installed on win10
Win10、python3.5.6 和我已經安裝了 Conda。
當我嘗試在 CLI 中使用 cmd 安裝 SQLAlchemy 時,出現錯誤。
pip install SQLAlchemy
copying lib\sqlalchemy\testing\suite\test_update_delete.py -> build\lib.win-amd64-3.5\sqlalchemy\testing\suite
copying lib\sqlalchemy\testing\suite\__init__.py -> build\lib.win-amd64-3.5\sqlalchemy\testing\suite
running build_ext
error: [WinError 2] The system cannot find the file specified
Failed building wheel for SQLAlchemy
Command "C:\ProgramData\Anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\xby\\AppData\\Local\\Temp\\pip-install-ebkmu2f_\\SQLAlchemy\\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\xby\AppData\Local\Temp\pip-record-b0kltmo1\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\xby\AppData\Local\Temp\pip-install-ebkmu2f_\SQLAlchemy\
誰能給我一個線索? 提前致謝。
好的,我終於解決了這個棘手的問題。
這都是因為windows系統上沒有編譯器,因為我沒有安裝VS或任何其他編譯器。
所以我設法安裝了一個替代的: http://mingw-w64.org安裝后,像這樣運行 cmd (對於64位系統):
python setup.py install build --compiler=mingw64
在此之后,一切都順利進行。 希望這有助於有人像我一樣陷入困境。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.