Windows下使用BeautifulSoup 出现You are trying to run the Python 2 version of Beautiful Soup under Python
来源:互联网 发布:用户画像建模算法 编辑:程序博客网 时间:2024/06/06 02:19
Windows下使用BeautifulSoup 出现You are trying to run the Python 2 version of Beautiful Soup under Python
解决方法: 需要将bs4通过python自带的工具2to3.py转化为python3下的文件,这个工具在python安装目录的Tools\scripts中。
去BeautifulSoup安装目录或者解压目录下,拷贝bs4的库文件夹到python安装目录的Lib中,然后cmd进入这个Lib文件夹,输入python 2to3.py文件路径 -w bs4
导入其他库出现这种情况应该也可以这样解决。
阅读全文
0 0
- 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 ....错误
- 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.'<>
- Python 3.0安装BeautifulSoup插件并使用 与Python 2 version of Beautiful Soup under Python 3问题处理
- Python自学|Windows 下安装beautiful soup 4-4.4.1
- windows 64 python beautiful soup 安装
- python Beautiful Soup文档
- Python Beautiful Soup简介
- Python Beautiful Soup Example
- [Python]安装Beautiful Soup
- 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
- 使用FABridge时,出现You are trying to call recursively into the Flash Player which is not allowed…错误的处理
- TensorFlow学习之路(1): correct = tf.nn.in_top_k(logits, labels, k)
- HTML:DOM操作
- 自定义实现瀑布流布局
- Kotlin语法(九)
- iFunk翼超极本苏宁易购正式开售啦
- Windows下使用BeautifulSoup 出现You are trying to run the Python 2 version of Beautiful Soup under Python
- 【JMeter】JMeter使用plugins插件进行服务器性能监控
- Java基础——substring字符串截取
- Python3.6请求网站时报错:http.client.RemoteDisconnected: Remote end closed connection without response
- tensorflow CUDA out of memory
- Servlet生命周期、工作原理
- getpwnam,getgrnam,getpwent,crypt等函数
- python 中文乱码问题深入分析
- leetcode 26. Remove Duplicates from Sorted Array