每当我尝试安装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.
有没有人有任何想法?
答案 0 :(得分:1)
在您的PATH环境变量中,您的Perl目录可能在Python之前,因此当您调用pip
时,它会触发位于Strawberry Perl实例中的pip
二进制文件。
尝试使用完整路径调用pip
,例如:c:\python27\bin\pip
。我目前无法访问Windows框,因此可能不是实际路径,您必须找到实际位置。