我正在尝试安装 easy_install 以便使用 BeautifulSoup...但是我不知道我的 PATH 目录是什么...当我运行 easy_install BeautifulSoup.. 我得到
错误:不是可识别的存档类型:C:\docume~1\tom\locals~1\temp\weasy_install-w6haxs\BeautifulSoup-3.2.1.tar.gz
我猜这与环境变量中未正确设置的路径有关......但我不知道我的路径应该是什么...... 任何帮助将不胜感激......我对所有这些都很陌生所以说英语而不是编程将不胜感激大声笑..
请您参考如下方法:
安装 beautifulsoup 正是我昨天所做的。这些步骤适用于我的 Windows 64:
下载并运行 ez_setup.py 于 http://peak.telecommunity.com/dist/ez_setup.py 这会将 easy_install.exe 安装到 python 脚本目录。对我来说是 C:/python26/scripts
CD 到 C:/python26/scripts
运行 easy_install.exe pip 这将安装 pip。
然后运行pip install beautifulsoup4得到美汤。
请确保在您的防火墙程序中允许这些工具访问 Internet。
