私はUbuntuを実行していて、システムにpython2.7とpython3.5の両方があります
設定を微調整したので、
python test.py
python3が実行されます
モジュールpyperclipをpython3にインストールしたかった。
pip install pyperclip
Python2用にインストールしました
使用を提案されたクイックグーグル検索
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 3.5をインストールした場合は、pipが付属しているはずなので、試してみると、Python3.5のpippython -m pip
が実行されます。何かをインストールするには、たとえば、通常のpipコマンドをそのまま使用しますpython -m pip install pyperclip
。
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加