gpt4 book ai didi

python - 安装 easy_install,并不容易

转载 作者:太空宇宙 更新时间:2023-11-04 07:45:07 25 4
gpt4 key购买 nike

我正在尝试安装 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。

关于python - 安装 easy_install,并不容易,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9797613/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com