出现问题:Command "python setup.py egg_info" failed with error code 1,当进行pip3 install beautifulsoup

C:\Users\wang>pip3 install beautifulsoup
Collecting beautifulsoup
  Using cached BeautifulSoup-3.2.1.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\wang\AppData\Local\Temp\pip-build-3s2h_rej\beautifulsoup\se
tup.py", line 22
        print "Unit tests have failed!"
                                      ^
    SyntaxError: Missing parentheses in call to ‘print‘. Did you mean print(int
"Unit tests have failed!")?

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\wang\App
Data\Local\Temp\pip-build-3s2h_rej\beautifulsoup\

解决方案是:

C:\Users\wang>pip install bs4

原文地址:https://www.cnblogs.com/feliciawon/p/8458043.html

时间: 2024-10-06 15:18:05

出现问题:Command "python setup.py egg_info" failed with error code 1,当进行pip3 install beautifulsoup的相关文章

解决安装ipython时Command &quot;python setup.py egg_info&quot; failed with error code 1 in /tmp

最近使用ubuntu16.04 server版安装ipython的时候一直在报错: IPython 6.0+ does not support Python 2.6, 2.7, 3.0, 3.1, or 3.2.      When using Python 2.7, please install IPython 5.x LTS Long Term Support version. python2.7 ipython Command "python setup.py egg_info"

解决Command &quot;python setup.py egg_info&quot; failed with error code 1坎坷路

机器:os x 本地想跑一下一个开源django博客应用,下了源码到里头pip install -r requirements.txt 结果屡次出错,Command "python setup.py egg_info" failed with error code 1 试了多次一直于最后一行这个错误. 我开始以为权限问题,setuptools问题 后来有转机了,我把 requirements.txt里头一个个安装,最后原是psycopg2这个安装有问题 pip我错怪你了,不过把官方源换

Command &quot;python setup.py egg_info&quot; failed with error code 1一种问题的解决方法

问题描述:无论是你在pycharm中直接使用import and install命令,还是pip的时候出现了Command "python setup.py egg_info" failed with error code 1这样的问题描述,需要考虑可能pip的这个源里面没有对应的python3.5的模块 解决方法:通常可以直接google "XXX for python3.5",或者在github中找到对应的python3.5的项目,将对应的.py文件添加到pyt

解决 Command &quot;python setup.py egg_info&quot; failed with error code 1 问题

参考: "pip install unroll": "python setup.py egg_info" failed with error code 1 解决 Command "python setup.py egg_info" failed with error code 1 问题 在执行 pip install -r requirements.txt 时遇到错误: Command "python setup.py egg_info

Command &quot;python setup.py egg_info&quot; failed with error code 1 in C:\Users\w5659\AppData\Local\Temp\pip-install-t7uomu4r\xa dmin\

Error msg: C:\Users\w5659>pip install xadmin Collecting xadmin Using cached https://files.pythonhosted.org/packages/1d/e9/2ac160c532d0d462142fa90aa86a0e317295e8d86fa4caf84d04f6e24c4 9/xadmin-0.6.1.tar.gz Complete output from command python setup.py e

Error:Command &quot;python setup.py egg_info&quot; failed with error code 1 in /tmp/pip-build-not69mld/pysam/

使用pip命令之后报错,错误信息如下图: 提示egg_info文件错误 解决原理: 我在装载python3.6的机器上同时也安装了python2.7(软件需要),使用python 3的pip来安装python 2的git包,当然会报错. 解决代码: wget https://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg --no-check-certificate #下载python2.7的setupt

Ubuntu14.04安装MySQL-python异常: mysql_config: not found,Command &quot;python setup.py egg_info&quot; failed with error code 1 in /tmp/pip-build-MJWMPd/MySQL-python/

缺少包 libmysqlclient-dev sudo apt-get install libmysqlclient-dev

安装 xadmin 报错: Command &quot;python setup.py egg_info&quot; failed with error code 1 in C:\Users\Python\AppData\Local\Temp\pip-install-1k1byg0p\xadmin\

报错详情 安装 xadmin 组件的时候报错 不论是命令行还是 pycharm 方式都不行 分析报错 按照报错提示是说 README.rst 文件的编码问题导致. 解决报错 通过 github 下载源码 zip 包 https://github.com/sshwsfc/xadmin 自己手动将 包里面的  README.rst 文件自行替换掉 用 txt 文本文件重命名即可 然后手动通过 本地包 安装 在安装的时候有个 兼容性需要解决. 但是 xadmin 好歹是安装上了 当前的 django

Command &quot;python setup.py egg_info&quot; failed with error code 1 in /tmp/pip-build-qvc66dfs/supervisor/

# 安装supervisor 出错 pip3 install supervisor # 解决 sudo pip3 install supervisor 原文地址:https://www.cnblogs.com/shmily3929/p/10025380.html