module 'pip._internal' has no attribute 'pep425tags'

一、问题分析

这是python 3.x不能用2.x的版本问题

二、解决方案

import wheel.pep425tags as w

print(w.get_supported())

输出:

[('cp36', 'cp36m', 'win32'), ('cp36', 'none', 'win32'), ('cp36', 'none', 'any'), ('cp3', 'none', 'any'), ('cp35', 'none', 'any'), ('cp34', 'none', 'any'), ('cp33', 'none', 'any'), ('cp32', 'none', 'any'), ('cp31', 'none', 'any'), ('cp30', 'none', 'any'), ('py3', 'none', 'win32'), ('py36', 'none', 'any'), ('py3', 'none', 'any'), ('py35', 'none', 'any'), ('py34', 'none', 'any'), ('py33', 'none', 'any'), ('py32', 'none', 'any'), ('py31', 'none', 'any'), ('py30', 'none', 'any')]

module 'pip._internal' has no attribute 'pep425tags'

原文地址:https://www.cnblogs.com/diffx/p/11780178.html

时间: 2024-08-30 16:13:47

module 'pip._internal' has no attribute 'pep425tags'的相关文章

创建django项目出现AttrbuteError module 'pip' has no attribute 'main'解决方法

由于升级pip到10.0,创建django出现AttrbuteError module 'pip' has no attribute 'main'错误,解决方法有两种 一:找到/Applications/PyCharm.app/Contents/helpers/packaging_tool.py在头部加上 import pip._internal as pip_new 然后分别修改文件中的这两行中的pip return pip.main(['install'] + pkgs) return pi

module 'pip' has no attribute 'main'

Pycharm安装package出现报错:module 'pip' has no attribute 'main' Traceback (most recent call last): File "D:\Program Files\JetBrains\PyCharm Community Edition 2017.3.1\helpers\packaging_tool.py", line 192, in main retcode = do_install(pkgs) File "

解决pycharm问题:module 'pip' has no attribute 'main'

找到安装目录下 helpers/packaging_tool.py文件,找到如下代码: def do_install(pkgs):    try:        import pip    except ImportError:        error_no_pip()    return pip.main(['install'] + pkgs) def do_uninstall(pkgs):    try:        import pip    except ImportError:  

Pycharm问题:module 'pip' has no attribute 'main'

更新pip之后(pip 10 版本之后),Pycharm安装package出现报错:module 'pip' has no attribute 'main' 解决办法如下: 找到Pycharm安装目录下的  helpers/packaging_tool.py 文件找到如下代码: def do_install(pkgs): try: import pip except ImportError: error_no_pip() return pip.main(['install'] + pkgs) d

Jupiter 页面环境下使用pip无法安装(AttributeError: module 'pip' has no attribute 'main')

异常: AttributeError Traceback (most recent call last) <ipython-input-5-880e5dfa627c> in <module> 1 def install(package): 2 pip.main(["install", package]) ----> 3 install("syslog_parse") <ipython-input-5-880e5dfa627c>

pycharm安装第三方库失败module &#39;pip&#39; has no attribute &#39;main&#39;

用的pycharm2017.3,新创建一个项目,在安装appium-python-client时报错module 'pip' has no attribute 'main'.通过强大的度娘,知道是pip等级太高的原因,pip 10.0以上的版本中,没有mian.py文件, 方法一: 尝试进入venv/script文件中,直接把pip等级降下来 python -m pip install --upgrade pip==9.0.3 结果:回到pycharm中,发现pip版本并没有成变成9.0.3,放

解决Pycharm中module &#39;pip&#39; has no attribute &#39;main&#39;的问题

景:pip升级至10.0.1后,使用Pycharm安装Package时一直提示module 'pip' has no attribute 'main'报错信息. 解决方法: 找到Pycharm安装目录C:\Works\tools\JetBrains\PyCharm 2016.3.3\helpers下面的packaging_tool.py文件, 打开后定位到如下代码: 修改为如下代码: 修改后保存,再安装新的Package时就可以成功了. 解决Pycharm中module 'pip' has no

Python Keras module &#39;keras.backend&#39; has no attribute &#39;image_data_format&#39;

问题: 当使用Keras运行示例程序mnist_cnn时,出现如下错误: 'keras.backend' has no attribute 'image_data_format' 程序路径https://github.com/fchollet/keras/blob/master/examples/mnist_cnn.py 使用的python conda环境是udacity自动驾驶课程的carnd-term1 故障程序段: if K.image_data_format() == 'channels

pycharm最新版新建工程没导入本地包问题:module &#39;selenium.webdriver&#39; has no attribute &#39;Firefox&#39;

最新版的pycharm做了很大的改变,新建工程的时候,默认不导入本地的安装包,这就导致很多小伙伴踩坑了...明明已经pip安装过selenium了,但是却报AttributeError:module 'selenium.webdriver' has no attribute 'Firefox' 遇到问题 1.运行以下代码,执行后报错 2.这个代码很明显,webdriver下方都有姨妈红了,这种代码里面有姨妈红的,就不要运行了,肯定报错 解决办法 1.排查这个问题,首先确定selenium已经安装