Skip to main content
 首页 » 编程设计

Python PIP 安装问题

2024年11月01日10虾米哥

我正在使用命令行尝试安装 pip。我正在使用命令行来安装文件。我在 C:\Python27 目录中使用命令“python C:\Users\Lucas\Desktop\get-pip.py install”。以下是我在错误日志中收到的错误消息:

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 

请您参考如下方法:

尝试:

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