![](/img/trans.png)
[英]Can't install psycopg2 package through pip install on MacOS
[英]Can't pip install psycopg2 on windows
當我嘗試在虛擬環境中使用PIP安裝psycopg2時,在Windows 8上出現以下錯誤:
c:\python27\include\pyconfig.h(231) : fatal error C1083: Cannot open include file: 'basetsd.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\BIN\\amd64\\cl.exe' failed with exit status 2
我以前有這個錯誤:
error: Unable to find vcvarsall.bat
所以我遵循了這個問題的各種答案:
並設法擺脫
error: Unable to find vcvarsall.bat
但是有一個新的挑戰
有任何想法嗎?
謝謝
根據psycopg網站 ,您應該使用Windows端口安裝它:
我猜您需要安裝一個Visual Studio版本才能使pip正確編譯標頭。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.