#i am trying install pip package on python version 3.7.1 and i tried:
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py #first command
python get-pip.py #second command
IndexError: list index out of range
Exception:
Traceback (most recent call last):
File "C:\Users\ΦΩΤΗΣ ΣΤΑΥΡΙΑΝΟΣ\AppData\Local\Temp\tmpjpbaflws\pip.zip\pip\_internal\cli\base_command.py", line 143, in main
status = self.run(options, args)
File "C:\Users\ΦΩΤΗΣ ΣΤΑΥΡΙΑΝΟΣ\AppData\Local\Temp\tmpjpbaflws\pip.zip\pip\_internal\commands\install.py", line 318, in run
resolver.resolve(requirement_set)
File "C:\Users\ΦΩΤΗΣ ΣΤΑΥΡΙΑΝΟΣ\AppData\Local\Temp\tmpjpbaflws\pip.zip\pip\_internal\resolve.py", line 102, in resolve
self._resolve_one(requirement_set, req)
File "C:\Users\ΦΩΤΗΣ ΣΤΑΥΡΙΑΝΟΣ\AppData\Local\Temp\tmpjpbaflws\pip.zip\pip\_internal\resolve.py", line 259, in _resolve_one
dist = abstract_dist.dist(self.finder)
File "C:\Users\ΦΩΤΗΣ ΣΤΑΥΡΙΑΝΟΣ\AppData\Local\Temp\tmpjpbaflws\pip.zip\pip\_internal\operations\prepare.py", line 77, in dist
self.req.source_dir))[0]
IndexError: list index out of range
答案 0 :(得分:0)
哦,不,这似乎是路径中存在unicode的python / windows问题。不幸的是,在希腊语中选择用户名(或基本上所有非英语的用户名)都会破坏某些东西...
您应该尝试使用assets/...
,这是安装pip的新批准方式,即AFAIK。可能是他们将其固定在那里了。
答案 1 :(得分:0)
如果您使用的是Python 3.7.1,并且已经从python.org安装了Python,则应该已经安装了PIP。也许尝试运行一些pip命令来检查情况是否如此?