'You are trying to run the Python 2 version of Beautiful Soup under Python 3. This will not work.'<>
来源:互联网 发布:网络销售入门 编辑:程序博客网 时间:2024/06/06 00:02
1、安装beautifulsoup时出现的错误
'You are trying to run the Python 2 version of Beautiful Soup under Python 3. This will not work.'<>'You need to convert the code, either by installing it (`python setup.py install`) or by running 2to3 (`2to3 -w bs4`).'
解决办法:
1、切换到解压目录下
root@gao:~/beautifulsoup4-4.6.0# pwd
/root/beautifulsoup4-4.6.0
2、将bs4目录拷贝到/usr/lib目录下,通常/usr/lib是python安装的目录
root@gao:~/beautifulsoup4-4.6.0# cp bs4/ -r /usr/lib/
3、切换到/usr/lib目录下,执行如下指令:
root@gao:~/beautifulsoup4-4.6.0# 2to3 bs4 -w
问题就解决了
阅读全文
0 0
- You are trying to run the Python 2 version of Beautiful Soup under Python 3. This will not work.
- 错误 You are trying to run the Python 2 version of Beautiful Soup under Python 3. This will not work
- 'You are trying to run the Python 2 version of Beautiful Soup under Python 3. This will not work.'<>
- Windows下使用BeautifulSoup 出现You are trying to run the Python 2 version of Beautiful Soup under Python
- Windows下Python3安装BeautifulSoup4显示'You are trying to run the Python 2 version of Beautiful Soup under
- Windows环境下安装beautifulsoup4出现 'You are trying to run the Python 2 version of Beautiful Soup ....错误
- Python 3.0安装BeautifulSoup插件并使用 与Python 2 version of Beautiful Soup under Python 3问题处理
- This Style does not belong to the supplied Workbook. Are you trying to assign a style from one workb
- POI生成Excel如果并发的情况报错This Style does not belong to the supplied Workbook. Are you trying to assign a s
- python Beautiful Soup文档
- Python Beautiful Soup简介
- Python Beautiful Soup Example
- [Python]安装Beautiful Soup
- python 安装 Beautiful Soup
- Python模块Beautiful Soup
- The object of type 'RectTransform' has been destroyed but you are still trying to access it
- This version of Visual Studio .NET does not support source controlled projects. Any changes that you make to this project will n
- python Beautiful Soup分析网页
- javascript高级程序设计 读书笔记(一)
- 使用windows server 2008自带备份工具备份失败注意事项
- 文章标题
- Hibernate入门(一)之基本配置
- 编写函数,输出大于a小于b的所有偶数,主函数读入两个正整数
- 'You are trying to run the Python 2 version of Beautiful Soup under Python 3. This will not work.'<>
- 自顶向下 逐步求精
- django 分页功能
- Hadoop/MapReduce 查找、统计和列出大图中的所有三角形
- 数的高度(java)
- 11-24 & 11-25 省选集训总结/题解
- mac 输入特殊符号⌘,⌥
- 使用SVN进行版本控制
- 在Linux系统终端下输入ls命令,不同颜色结果代表着不同的含义