当默认目录为python2.7时,如何将beautifulsoup安装到python3中? [英] How to install beautifulsoup into python3, when default dir is python2.7?

查看:114
本文介绍了当默认目录为python2.7时,如何将beautifulsoup安装到python3中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我同时安装了Python 2.7和Python 3.5.当我键入pip install beautifulsoup4时,它告诉我它已经安装在python2.7/site-package目录中.

I have both Python 2.7 and Python 3.5 installed. When I type pip install beautifulsoup4 it tells me that it is already installed in python2.7/site-package directory.

但是如何将其安装到python3目录中?

But how do I install it into the python3 dir?

推荐答案

我认为pip3可以满足您的需求,请在终端上使用以下命令:

I think pip3 will satisfy your needs, use the below command on the terminal:

pip3 install beautifulsoup4

请参见文档

这篇关于当默认目录为python2.7时,如何将beautifulsoup安装到python3中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆