2017-04-10 12 views
2

PythonのバージョンのWindows 10にWindowsでgit bashを使ってpythonパスを設定する方法は?

をGitのバッシュを使用した:pipを実行すると2.7.12

、それは示しています

$ pip 
bash: /c/cygwin/bin/pip: /usr/bin/python2.7: bad interpreter: No such file or directory 

ピップと右のpythonのパスを見つけるには?


追加

$ which python 
/c/cygwin/bin/python 
+0

'$ which python'と入力するとどうなりますか? – JacobIRR

+0

ああ、私が言うことができる限りこれの複製:http://stackoverflow.com/questions/31768128/pip-installation-usr-local-opt-python-bin-python2-7-bad-interpreter-no-such -f – JacobIRR

+0

[pipインストール/usr/local/opt/python/bin/python2.7の可能な複製:悪いインタプリタ:そのようなファイルやディレクトリはありません](http://stackoverflow.com/questions/31768128/pip-installation- usr-local-opt-python-bin-python2-7-bad-interpreter-no-such-f) – JacobIRR

答えて

0

あなたのピップは何とか存在していないあなたのpythonのために間違ったパスを使用しています。しかし、簡単な回避策がある、あなたが使いたいPythonインタプリタを指定するには、これを入力することができます。

$ /c/cygwin/bin/python -m pip install yourpackage 

これは一時的な回避策です、this質問から何かをしようと、それを修正します。

+0

それは私のために働く。どうもありがとうございました! –

関連する問題