安装python后pip不能用

安装python后pip不能用
在cmd中输入pip,显示以下信息
Traceback (most recent call last):
File “D:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\ru
npy.py”, line 193, in _run_module_as_main
main”, mod_spec)
File “D:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\ru
npy.py”, line 85, in run_code
exec(code, run_globals)
File "D:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\si
te-packages\pip_main
.py", line 16, in
from pip._internal import main as main # isort:skip # noqa
File "D:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\si
te-packages\pip_internal_init
.py", line 40, in
from pip._internal.cli.autocompletion import autocomplete
File “D:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\si
te-packages\pip_internal\cli\autocompletion.py”, line 8, in
from pip._internal.cli.main_parser import create_main_parser
File “D:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\si
te-packages\pip_internal\cli\main_parser.py”, line 11, in
from pip.internal.commands import (
File "D:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\si
te-packages\pip_internal\commands_init
.py", line 6, in
from pip._internal.commands.completion import CompletionCommand
File “D:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\si
te-packages\pip_internal\commands\completion.py”, line 6, in
from pip._internal.cli.base_command import Command
File “D:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\si
te-packages\pip_internal\cli\base_command.py”, line 21, in
from pip._internal.download import PipSession
File “D:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\si
te-packages\pip_internal\download.py”, line 14, in
from pip._vendor import requests, urllib3
ImportError: cannot import name ‘requests’ from 'pip.vendor’ (D:\Program Files
(x86)\Microsoft Visual Studio\Shared\Python37_64\lib\site-packages\pip_vendor_
init
.py)

安装python后pip不能用安装python后pip不能用 a1026628648 发布了1 篇原创文章 · 获赞 0 · 访问量 25 私信 关注
上一篇:AD18 分割平面方法


下一篇:类的可访问属性