简体   繁体   English

Windows 10中的Python PIP路径

[英]Python PIP Path in Windows 10

I just installed Python 2.7.10, Release Date: 2015-05-23 in Windows. 我刚在Windows中安装了Python 2.7.10,发布日期:2015-05-23。 Then I tried to call PIP via the shell, which failed. 然后我试图通过shell调用PIP,但失败了。 So I assumed that the Scripts directory in of Python had not been added to the Path Variable. 所以我假设P​​ython中的Scripts目录尚未添加到Path Variable中。 However, it had been added, but as 但是,它已被添加,但是

 C:\Program Files\Python27\Scripts;

instead of 代替

 C:\Program Files\Python27\Scripts\;

I added the later and PIP immediately worked. 我添加了后来和PIP立即工作。 Is it safe now to delete the former? 现在删除前者是否安全? And how can I notify the developers of this bug? 我怎样才能通知开发者这个bug?

Is it safe now to delete the former? 现在删除前者是否安全?

Yes, as Zach mentioned you can edit your PATH to whatever you like, the worst that could happen is some program that uses $PATH will no longer be able to find that executable, in which case you can just add it back to PATH. 是的,正如Zach所提到的,您可以将PATH编辑为您喜欢的任何内容,可能发生的最坏情况是使用$PATH某个程序将无法再找到该可执行文件,在这种情况下,您只需将其添加回PATH即可。

And how can I notify the developers of this bug? 我怎样才能通知开发者这个bug?

That's not necessary, because this is not a bug. 这不是必要的,因为这不是一个错误。 I am on windows 10, same python version as you, and my PATH has C:\\Python27\\Scripts; 我在Windows 10上,和你一样的python版本,我的PATH有C:\\Python27\\Scripts; and it works fine. 它工作正常。 It recognizes pip as a command. 它将pip识别为命令。

It doesn't matter whether you add the trailing \\ or not. 无论是否添加尾随\\无关紧要。 Same as you can cd into a folder without appending a \\ to its name. 与您可以cd到文件夹中相同,而不会在其名称后附加\\

As far as modifying your PATH goes, you can add/remove whatever you like so long as you are sure you want to. 至于修改你的PATH,你可以添加/删除任何你喜欢的东西,只要你确定你想要。 In this case, you could easily change it back if something was amiss. 在这种情况下,如果出现问题,您可以轻松地将其更改回来。

You can go to the GitHub Issues Page for the PIP project and add an issue. 您可以转到PIP项目的GitHub问题页面并添加问题。 Be sure to check and see if this issue already exists, first. 请务必先检查并确定此问题是否已存在。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM