使用PIP安装Python包时出现错误

3
每当我尝试安装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.

有人有任何想法吗?
1个回答

1
在你的PATH环境变量中,Perl目录很可能在Python目录之前,因此当你调用pip时,它会启动位于Strawberry Perl实例中的pip二进制文件。
尝试使用完整路径调用pip,例如:c:\python27\bin\pip。我目前无法访问Windows计算机,因此这可能不是实际路径,你需要找到实际位置。

你介意告诉我确切的路径,我会相应地更新答案吗?谢谢! - stevieb
python27\scripts\pip - mickNeill

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接