<p>今天对我来说是糟糕的一天。我很沮丧,因为我花了4个小时试图安装<code>beautifulsoup4</code>。我搜遍了所有能拿到的教程。
它安装在我的计算机上,但是当我在shell上执行<code>import bs4</code>操作时,它会给我以下消息:</p>
<pre><code>Traceback (most recent call last):
File "<pyshell#13>", line 1, in <module>
import bs4
File "C:\Python34\lib\bs4\__init__.py", line 48
'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`).'
</code></pre>
<p>有人知道我能做什么吗?它告诉我运行一个命令,但它不告诉我如何运行它。</p>