python pip install XXX出现报错问题

重装Anacondas后,将pip 和python.exe路径加入到环境变量后直接在cmd窗口进行pip 操作,报错如下

报错内容为:

pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.  pip操作是直接联网的,需要SSL端口加密连接到安装包网址,直接在CMD下运行自带是没有SSL的,

解决方法:

找到Anacondas Prompt,在里面进行pip 操作,至少windows10系统这么做是可以的,网上大部分同样报错的是在linux环境,解决方法自行百度。

原文地址:https://www.cnblogs.com/mrtop/p/10681622.html

时间: 2024-08-01 12:11:08

python pip install XXX出现报错问题的相关文章

Python pip安装Scrapy,报错Twisted

Scrapy依赖的包有如下:lxml:一种高效的XML和HTML解析器w3lib:一种处理URL和网页编码多功能辅助twisted:一个异步网络框架cryptography 和 pyOpenSSL:处理各种网络级安全需求——————————————————————————1.先运行一次pip安装 pip install Scrapy2.安装完一次过后,基本除了报错twisted没安装成功以外,其他依赖包应该是安装好了. 然后自行下载twisted,注意:要对应你的python版本号和电脑系统的位

python pip install error

使用pip install的时候报错 解决方法是使用如下的命令进行安装 python -m pip install sqlalchemy 升级pip的命令 报错没有权限的话可以使用下面的方法

python pip install 报:HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.错误

下午想要安装 scrapy框架时报错,如图: 网上查了一下:因为网络差导致安装超时,所以用安装时指定源的方法可以解决: pip install scrapy -i https://pypi.tuna.tsinghua.edu.cn/simple 红色的字体表示要安装的模块 python pip install 报:HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.错误 原文地址:https:/

python安装模块的时候报错error: command 'gcc' failed with exit status 1

[情况] 在写Python代码的时候,需要用到psutil模块,需要安装. 但是在安装时,报错:error: command 'gcc' failed with exit status 1 [解决步骤] 按照经验,觉得应该是缺少了gcc模块, 所以操作 [ yum install -y gcc ] 安装完成后,再继续安装psutil还是报同样的错,发现报错不是  not found gcc,可能是某个功能模块缺失 发现需要安装多一些依赖的包:  [ yum install -y libffi-d

centos6,python3,通过pip安装pycurl出现报错提示

Centos6.7系统,python3.6.7,通过 pip 安装pycurl出现报错: __main__.ConfigurationError: Could not run curl-config: [Errno 2] No such file or directory: 'curl-config': 'curl-config' 系统已经安装了curl,出现此错误提示一般是因为没有安装对应的开发库,解决方法: yum -y install libcurl-devel 原文地址:https://

python 读取数据库,老是报错。

在8.04.4环境下(其实我觉得跟环境无关,是我语句有问题): $ dpkg -l | grep -i python ii  libapache2-mod-python                 3.3.1-2build1               Apache 2 module that embeds Python within th ii  moinmoin-common                       1.5.8-5.1ubuntu2.5          Python

python pip install tables couldn't find microsoft vc++ 9.0 (vcvarsall.bat)

if you have install microsoft visual studio 2013, just create a the enviroment variable named [VS90COMNTOOLS] and point it to %VS120COMNTOOLS%. because python(2.7.8) use micorsoft visual vc++ 9.0 compiler (shipped with visual studio 2008) to compile

解决node在ubuntu下npm install canvas不断报错的尴尬

项目中需要用到node中一个验证码的npm包:captchagen,此npm包依赖canvas画布npm包.执行npm install canvas时就会报错,错误代码显示文件编译失败.最终在github问答上找到答案: 问题根源是ubuntu中缺少图形开发库,一一安装上问题解决. sudo apt-get install libcario-dev; sudo apt-get install libjpeg-dev; sudo apt-get install libgif-dev; sudo a

Python读取CSV文件,报错:UnicodeDecodeError: 'gbk' codec can't decode byte 0xa7 in position 727: illegal multibyte sequence

Python读取CSV文件,报错:UnicodeDecodeError: 'gbk' codec can't decode byte 0xa7 in position 727: illegal multibyte sequence 解决办法: 在语句open(sFileName,newline='')中,增加encoding='UTF-8',如下: open(sFileName,newline='',encoding='UTF-8') Python读取CSV文件,报错:UnicodeDecode