简体   繁体   English

Python package BeautifulSoup安装错误

[英]Python package BeautifulSoup installation error

professional... BeautifulSoup install error...ㅠㅠ my windows environment is 64bit..and python also 64bit, 3.8.2version help me专业的... BeautifulSoup 安装错误...ㅠㅠ我的windows环境是64位的..和python也是64位的,3.8.2版本帮助我

Collecting BeautifulSoup Using cached BeautifulSoup-3.2.2.tar.gz (32 kB)使用缓存的 BeautifulSoup-3.2.2.tar.gz 收集 BeautifulSoup (32 kB)

ERROR: Command errored out with exit status 1:
 command: 'C:\Users\hoyou\AppData\Local\Programs\Python\Python38\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\hoyou\\AppData\\Local\\Temp\\pycharm-packaging\\BeautifulSoup\\setup.py'"'"'; __file__='"'"'C:\\Users\\hoyou\\AppData\\Local\\Temp\\pycharm-packaging\\BeautifulSoup\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\Public\Documents\ESTsoft\CreatorTemp\pip-pip-egg-info-j79vzovk'
     cwd: C:\Users\hoyou\AppData\Local\Temp\pycharm-packaging\BeautifulSoup\
Complete output (6 lines):
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\hoyou\AppData\Local\Temp\pycharm-packaging\BeautifulSoup\setup.py", line 3
    "You're trying to run a very old release of Beautiful Soup under Python 3. This will not work."<>"Please use Beautiful Soup 4, available through the pip package 'beautifulsoup4'."
                                                                                                    ^
SyntaxError: invalid syntax
----------------------------------------

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.错误:命令出错,退出状态为 1:python setup.py egg_info 检查日志以获取完整命令 output。

You should consider Anaconda if you're running on Windows: https://docs.anaconda.com/anaconda/install/windows/ . You should consider Anaconda if you're running on Windows: https://docs.anaconda.com/anaconda/install/windows/ .

Beautifulsoup package: https://anaconda.org/anaconda/beautifulsoup4 Beautifulsoup package: https://anaconda.org/anaconda/beautifulsoup4

The package management is much easier than just using the "vanilla" python. package 管理比仅使用“香草”python 要容易得多。

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

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