我正在使用Ubuntu操作系统,系统中同时安装了Python 2.7和Python 3.5。
我已经调整了设置,这样当我执行以下命令时:
python test.py
Python3的运行:
我想要在Python3中安装pyperclip模块。
pip install pyperclip
我已经为Python 2安装了它。
快速的谷歌搜索建议使用
pip3 install pyperclip
但我得到的是
pip3 is currently not installed . You can install it by typing
sudo apt install python3-pip
当我运行此命令时,我得到以下结果:
The following packages have unmet dependencies:
python3-pip : Depends: python-pip-whl (= 8.1.1-2) but 8.1.1- 2ubuntu0.2 is to be installed
Recommends: python3-dev (>= 3.2) but it is not going to be installed
Recommends: python3-setuptools but it is not going to be installed
Recommends: python3-wheel but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
我该怎么办?
python-pip-whl
了吗?另外,让我澄清一下,python
运行Python 3,但是pip
使用Python 2? - numbermaniac