2017-01-25 4 views
1

今週、新しいマシンをビルドするたびにpipエラーが発生しているので、私の既存のマシンにpipの作業コピーがあります。私は `のUbuntu/trusty64と最初のコマンドで放浪のマシンのプロビジョニングてることは次のとおりです。ピップインストールの失敗 - 既知のバグ

sudo apt-get install python-pip

しかしsudo pip install somethingを実行した後、私は新しいマシンをスピンアップしてきた

ImportError:No module packaging.version. 
command/usr/binpython -c "import setuptools, tokenize;__file__=`/tmp/pip_build_root/defusexml/setup.py'; exec(compil(getattr(tokenize, 'open')(__file__).read().replace('\r\n', '\n'), __file__, 'exec')) install --record /tmp/pip-wVb4Du-record/install-record.txt --single-version-externally-managed --compile failed with erro code 1 in /tmp/pip_build_root/defusedxml Storing debug log for failure in /home/vagrant/.pip/pip.log 

エラーで失敗しますインストールされたピップはエラーなしでインストールされます。これは、私が過去6ヶ月間同じファイルを持つマシンをプロビジョニングしている新しい問題です。これを修正する方法はありますか?依存関係を変更しましたか?

答えて

1

これ以上の研究をした結果、最近導入された既知のバグhttps://bugs.launchpad.net/ubuntu/+source/python-pip/+bug/1658844が判明しました。

回避策は、python-setuptools経由でeasy_installでpipをインストールすることです。ピップは機能します。

+1

リンクを2つ深く追っています。私はLinux上で、私はpython-pipの私の適切なバージョンを削除し、このスクリプトを実行する必要がありました:https://bootstrap.pypa.io/get-pip.py。次のリンク先の指示:https://packaging.python.org/installing/#install-pip-setuptools-and-wheel(リンク先はhttps://github.com/pypa/setuptools/issues/937) – radman

関連する問題