2013-11-27 174 views
1

我正在使用命令行嘗試安裝pip。我正在使用命令行來安裝該文件。我在C:\ Python27目錄下使用命令「python C:\ Users \ Lucas \ Desktop \ get-pip.py install」。下面是我收到的錯誤日誌中的錯誤消息:Python PIP安裝問題

Exception information: 
Traceback (most recent call last): 
    File "c:\users\lucas\appdata\local\temp\unpacker-hpeuf5-scratchdir\pip\basecommand.py", line 134, in main 
    status = self.run(options, args) 
    File "c:\users\lucas\appdata\local\temp\unpacker-hpeuf5-scratchdir\pip\commands\install.py", line 236, in run 
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle) 
    File "c:\users\lucas\appdata\local\temp\unpacker-hpeuf5-scratchdir\pip\req.py", line 1077, in prepare_files 
    url = finder.find_requirement(req_to_install, upgrade=self.upgrade) 
    File "c:\users\lucas\appdata\local\temp\unpacker-hpeuf5-scratchdir\pip\index.py", line 265, in find_requirement 
    raise DistributionNotFound('No distributions at all found for %s' % req) 
DistributionNotFound: No distributions at all found for install 
+1

檢查此... http://stackoverflow.com/questions/4750806/how-to-install-pip-on-windows – MikeJerome

回答

0

不傳遞任何參數:

python get-pip.py 

/path/to/version/python get-pip.py 
1

嘗試:

cd C:\Users\Lucas\Desktop 
python get-pip.py 
0

嘗試這出了

sudo python get-pip.py