简体   繁体   English

Python:警告在 Windows 10 上安装 pip

[英]Python: Warning intalling pip on windows 10

here is the message i get when i try to install pip (to install python packages) on windows 10 on my command prompt:这是我尝试在 Windows 10 上的命令提示符下安装 pip(以安装 python 包)时收到的消息:

Collecting pip
  Using cached pip-20.2.2-py2.py3-none-any.whl (1.5 MB)
Collecting setuptools
  Downloading setuptools-49.6.0-py3-none-any.whl (803 kB)
     |████████████████████████████████| 803 kB 1.3 MB/s
Installing collected packages: pip, setuptools
  WARNING: The scripts pip.exe, pip3.8.exe and pip3.exe are installed in 'C:\Users\GMU\AppData\Local\Programs\Python\Python38-32\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  WARNING: The scripts easy_install-3.8.exe and easy_install.exe are installed in 'C:\Users\GMU\AppData\Local\Programs\Python\Python38-32\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed pip-20.2.2 setuptools-49.6.0

What does it mean ?这是什么意思 ? It says it installed but when i try the它说它已安装,但当我尝试

pip --version pip --version

command or `命令或`

pip点子

i have message saying that pip is not a recognize command.我有消息说 pip 不是识别命令。

Thank's for your help.谢谢你的帮助。

I found the issue an the solution too.我也找到了这个问题的解决方案。

First in not English native so at the first read in didn't get it.首先不是英语母语,所以在第一次阅读时没有明白。

The path where I've installed python wasn't good or something like that so pip couldn't retrieved it properly.我安装 python 的路径不好或类似的东西,所以 pip 无法正确检索它。 The message is more or less clear about that fact.该消息或多或少清楚地说明了这一事实。

Here is what I did:这是我所做的:

  1. uninstall pip卸载pip
  2. uninstall python 3.8.0卸载python 3.8.0
  3. install python 3.8.5 with personalized config (not the recommended) because the install exe wanted to install python to the same folder than the last version.使用个性化配置(不推荐)安装 python 3.8.5,因为安装 exe 想要将 python 安装到与上一版本相同的文件夹。 So I choose "C:\\Program" and install Pip too with the prompt installer in order to get it to same folder.所以我选择"C:\\Program"并使用提示安装程序安装 Pip 以便将其安装到同一文件夹中。

Now it works fine for me.现在它对我来说很好用。

Morality => don't install python to this path C:\\Users\\GMU\\AppData\\Local\\Programs\\Python\\..道德 => 不要将 python 安装到此路径C:\\Users\\GMU\\AppData\\Local\\Programs\\Python\\..

Windows is recommending you to add python to your PATH. Windows 建议您将 python 添加到您的 PATH。 When you add python to your PATH, you will be able to execute pip in your command prompt.将 python 添加到 PATH 后,您将能够在命令提示符下执行 pip。

I would recommend having a look at this https://geek-university.com/python/add-python-to-the-windows-path/ .我建议看看这个https://geek-university.com/python/add-python-to-the-windows-path/

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

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