簡體   English   中英

使用PIP安裝python包時出錯

[英]error when installing python packages with PIP

每當我嘗試安裝python包時,我都會收到以下錯誤。

C:\Python27>pip install pyaardvark

C:\strawberry\perl\bin/pip: Perl lib version (5.22.0) doesn't match executable '
C:\strawberry\perl\bin\perl.exe' version (5.16.3) at C:/strawberry/perl/lib/Conf
ig.pm line 62.
Compilation failed in require at C:/strawberry/perl/lib/Errno.pm line 8.
BEGIN failed--compilation aborted at C:/strawberry/perl/lib/Errno.pm line 8.
Compilation failed in require at C:/strawberry/perl/lib/File/Temp.pm line 148.
BEGIN failed--compilation aborted at C:/strawberry/perl/lib/File/Temp.pm line 14
8.
Compilation failed in require at C:/strawberry/perl/vendor/lib/pip.pm line 6.
BEGIN failed--compilation aborted at C:/strawberry/perl/vendor/lib/pip.pm line 6
.
Compilation failed in require at C:\strawberry\perl\bin/pip line 5.
BEGIN failed--compilation aborted at C:\strawberry\perl\bin/pip line 5.

有沒有人有任何想法?

在你的PATH環境變量中,你的Perl目錄可能在Python之前,所以當你調用pip ,它會觸發位於Strawberry Perl實例中的pip二進制文件。

嘗試使用其完整路徑調用pip ,例如: c:\\python27\\bin\\pip 我目前無法訪問Windows框,因此可能不是實際路徑,您必須找到實際位置。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM