2017-04-19 8 views
1

wenn ich versuche, mit pip schöner Suppe zu installieren, geschieht dies immer‚Pip‘ erkannt wird nicht auf Python 2.7.12

C:\Python27>pip install beautifulsoup4 
'pip' is not recognized as an internal or external command, 
operable program or batch file. 

ich versucht habe Python 2.7.12 zu deinstallieren, aber wenn ich versuche, es sagt , dass es ein Problem mit dem Windows Installer-Paket

EDIT: Pip unter C installiert ist: \ Python27 \ Scripts

+1

Mögliche Duplikat [? Wie installiere ich pip auf Windows] (http://stackoverflow.com/questions/4750806/how-do-i-install-pip-on-windows) – Barney

+1

In Python 3.6 befindet sich pip in einem Unterverzeichnis mit dem Namen 'Scripts' unter dem Speicherort von Python.exe. Haben Sie auf Ihrer Fahrt nachgesehen, wo Pip sich tatsächlich befindet? –

+1

Wenn pip tatsächlich installiert ist, versuchen Sie 'python -m pip install beautifulsoup4'. – Evert

Antwort

0

Versuchen:

C:\Python\Scripts\pip install 
+0

es sagt mir kein Modul namens commands.install –

+0

pip install -U setuptools könnte es lösen –

+0

, wenn ich versuche, dass dies passiert C: \ Python27 \ Skripte> pip install -U setuptools Traceback (zuletzt letzten Aufruf): Datei " c: \ python27 \ lib \ runpy.py ", Zeile 174, in _run_module_as_main " __main__ ", fname, loader, pkg_name) Datei" c: \ python27 \ lib \ runpy.py ", Zeile 72, in _run_code exec Code in run_globals Datei "C: \ Python27 \ Skripts \ pip.exe \ __ main__.py", Zeile 9, in Datei "c: \ python27 \ pip.py", Zeile 194, in Haupt bootstrap (tmpdir = tmpdir) Datei "c: \ python27 \ pip.py", Zeile 83, im Bootstrap von pip.commands.install import InstallCommand ImportError: Kein Modul mit dem Namen –

0

pip ist im Scripts Unterverzeichnis. Versuchen Sie stattdessen:

C:\Python27>cd Scripts 
C:\Python27\Scripts>pip install beautifulsoup4 
+0

Ich werde mit keinem Modul namens commands.install getroffen und wenn ich versuche, pip installieren -U setuptools gleiche Sache passiert –