简体   繁体   English

安装软件包失败:安装软件包beautifulsoup4时发生错误?

[英]Install packages failed: Error occurred when installing package beautifulsoup4?

Why can't I install packages in my PyCharm?I remember that i can install some packages a couple of days ago... 为什么我不能在PyCharm中安装软件包?我记得几天前我可以安装一些软件包...

Detail: 详情:

The error output of the command:
Traceback (most recent call last):
 File "E:\PyCharm 3.4.1\helpers\packaging_tool.py", line 125, in main
   retcode = do_install(pkgs)
 File "E:\PyCharm 3.4.1\helpers\packaging_tool.py", line 56, in do_install
   import pip
 File "E:\python\lib\site-packages\pip\__init__.py", line 4, in <module>
   import logging
 File "E:\python\lib\logging\__init__.py", line 26, in <module>
   import sys, os, time, cStringIO, traceback, warnings, weakref, collections
 File "E:\python\lib\collections\__init__.py", line 50
   self, *args = args
         ^
 SyntaxError: invalid syntax

This is likely because you're using a very old version of PyCharm that was buggy. 这可能是因为您使用的PyCharm版本太旧了,但还是有问题。 You're currently using 3.4.1 (as shown in your error log), when you should actually be using 4.5.3. 您当前正在使用3.4.1(如错误日志中所示),而实际上应该使用4.5.3。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM