[英]Python PIP Install Issues
我正在使用命令行尝试安装 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
不传递任何参数:
python get-pip.py
或
/path/to/version/python get-pip.py
试试这个
sudo python get-pip.py
尝试使用 python3 和 pip3 完成所有这些活动。 那对我有用
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.