我正在尝试在我的 Windows 10 系统上安装 pip。我得到了 get-pip.py 文件并运行了命令
python get-pip.py
这是终端的快照
$ python get-pip.py
Collecting pip
Using cached
https://files.pythonhosted.org/packages/46/dc/7fd5df840e
fb3e56c8b4f768793a237ec4ee59891959d6a215d63f727023/pip-19.0.1-py2
.py3-none-any.whl
Collecting setuptools
Using cached
https://files.pythonhosted.org/packages/ff/47/1dfa4795e
24fd6f93d5d58602dd716c3f101cfd5a77cd9acbe519b44a0a9/wheel-0.32.3-py2.py3-
none-any.whl
Installing collected packages: pip, setuptools, wheel
Successfully installed pip-19.0.1 setuptools-40.8.0 wheel-0.32.3
现在当我尝试检查版本时
pip -V
我明白了——
Traceback (most recent call last):
File "runpy.py", line 193, in _run_module_as_main
File "runpy.py", line 85, in _run_code
File "C:\Program Files\Python\python-3.6.3-embed-
amd64\Scripts\pip.exe\__main__.py", line 5, in <module>
ModuleNotFoundError: No module named 'pip'
为什么会这样?它只是说 pip 安装成功,当我尝试查看版本以检查是否已安装时,它说No module named 'pip'
另外,我在 PATH 变量中包含了 C:/Program/Files/Python/python3/Scripts 。
请帮忙 !!!!
温温酱
波斯汪
相关分类