windows8下安装python的beautifulsoup

运行环境:windows 8.1
python:2.7.6

在安装的时候,我使用的pip来进行安装,命令如下:

代码如下:

pip install beautifulsoup4

运行的时候,报错如下:

代码如下:

exception:
traceback (most recent call last):
file “j:\program files (x86)\python\python27\lib\site-packages\pip\basecomm
.py”, line 122, in main
status = self.run(options, args)
file “j:\program files (x86)\python\python27\lib\site-packages\pip\commands
stall.py”, line 278, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bu
e=self.bundle)
file “j:\program files (x86)\python\python27\lib\site-packages\pip\req.py”,
ne 1229, in prepare_files
req_to_install.run_egg_info()
file “j:\program files (x86)\python\python27\lib\site-packages\pip\req.py”,
ne 292, in run_egg_info
logger.notify(‘running setup.py (path:%s) egg_info for package %s’ % (sel
etup_py, self.name))
file “j:\program files (x86)\python\python27\lib\site-packages\pip\req.py”,
ne 265, in setup_py
import setuptools
file “build\bdist.win-amd64\egg\setuptools\__init__.py”, line 11, in

Posted in 未分类