安装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)
相关文章
- 01-07最新2021修复安装了谷歌框架GMS后华为/荣耀手机FCM推送服务仍不能用的问题(Microsoft Authenticator微软验证器在安装了Google服务后还是提示不可用)
- 01-07python – 安装pyaudio时,pip在/usr/local/include中找不到portaudio.h
- 01-07Python——pip安装报错:is not a supported wheel on this platform
- 01-07PIP安装Python的scipy,scrapy等包出现“failed building wheel for xxx”问题解决办法
- 01-07python虚拟环境(venv)批量安装包,pip使用总结
- 01-07安装python3.6.1 pip安装 虚拟环境的搭建
- 01-07如何在Mac OS X上安装python 3的pip?
- 01-07python之全局安装包管理工具pip
- 01-07python – pip不安装在setup()中声明的依赖项需要参数
- 01-07python – 安装setuptools和pip [复制]