2016-08-18 6 views
0

にモジュールをインストールし、なぜ私はpython2.7ためeasydictモジュールをインストールしたいと私は、次のコマンドを使用します。ピップ/usr/local/lib/python3.4/dist-packages

sudo pip install easydict 

をし、私が見つけますeasydictモジュールはpython3ディレクトリにインストールされています:

Downloading/unpacking easydict 
    Downloading easydict-1.6.zip 
    Running setup.py (path:/tmp/pip-build-hdy25apc/easydict/setup.py) egg_info for package easydict 

Installing collected packages: easydict 
    Running setup.py install for easydict 

    Could not find .egg-info directory in install record for easydict 
Successfully installed easydict 
Cleaning up... 
sudo pip install easydict 
Requirement already satisfied (use --upgrade to upgrade): easydict in /usr/local/lib/python3.4/dist-packages 
Cleaning up... 

なぜこれが起こりますか? ありがとうございます。

+0

前に2.xのパスを持っているために再アレンジしてくださいシステムパス2.xの

の上に好みを取りますか? – jwodder

+0

私のOSは:ubuntu16.04 –

答えて

0

システムのパスによって異なります。システムパスが2.xバージョンのパスの前にpipバイナリまたはpythonバイナリのパスが3.xの場合。その後3.xのは、使用しているどのようなOS 3.xのパス

+0

ありがとう。 OSのパスを確認しました。それは示しています: –

+0

'kang @ herakles:〜$ echo $ PATH /usr/local/cuda-7.5/bin/:/usr/local/cuda-7.5/bin:/usr/local/cuda-7.5/bin://usr/local/sbin:/ usr/local/bin:/ usr/sbin:/ usr/bin:/ sbin:/ bin:/ usr/games:/ usr/local/games' –

+0

両方の場所を教えてくださいpython 2.7 pipとpython 3.x pip –