错误log: creating /System/Library/Frameworks/Python.framework/Versions/2.7/share error: could not create '/System/Library/Frameworks/Python.framework/Versions/2.7/share': Operation not permitted 原因:因为EI Captain引入了SIP管理机制,所以旧版本的pip创建的文件目录操作被拒绝,包括使用root也…
用pip install升级已安装的附加包, 以tabulate包为例 去pypi官网查看tabulate包的介绍, 发现tabulate 0.7.6才开始支持宽字符的美化打印. 而且还需要安装它的附加包: widechars 然而我的机器里的tabulate的版本是0.7.5. 下面是升级步骤以及log记录: pip install --upgrade tabulate pip install tabulate[widechars] C:\Documents and Settings\Admi…
最近重新安装win10 64位专业版, 正好遇到python3.8发布,试了一下.结果jupyter都安装不了...心碎. ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. 查看网上资料,大多数都说升级两个包就可以了,一个是pip,一个是setuptools,升级方式如下: python -m pip install --u…
升级了Mac 系统后发现用pip安装pytest出现下面链接中的问题,解决方法是在install时候加上--user选项: 1. 切到home directory: cd - 2. install pytest:  pip install pytest --user Collecting pytest Using cached pytest-3.2.2-py2.py3-none-any.whl Requirement already satisfied: setuptools in /Syste…
首次在mac os 下,用pip install MySQL-Python时经常出现如下错误: sh: mysql_config: command not foundTraceback (most recent call last):  File "setup.py", line 15, in <module>    metadata, options = get_config()  File "/Users/***/Downloads/MySQL-python-…
场景 在使用python -m pip install --upgrade pip进行pip升级时,每次到最后就是报一大堆红色,最终升级不成功. 实现 使用默认的镜像源时间过长就会没响应,使用豆瓣的镜像进行升级. python -m pip install --upgrade pip -i http://pypi.douban.com/simple --trusted-host pypi.douban.com…
前言: 笔者装某库的时候提示需要升级pip版本,就python -m pip install --upgrade pip默认升级了,结果升级之后只要输入pip就有报错(如下图),网上百度了很多解决方法,才找到一个正解,接下来分享出来. 解决方法: 1.使用python -m ensurepip这个命令可以自动完成pip的修正2.以后使用pip的时候需要打python -m pip install --user 库名 更正为python -m pip install 库名 后话: pip安装的方法…
我已经升级到了最新的版本 安装其他模块过程中出现下面提示,便说明你需要升级pip You are using pip version 10.0.1, however version 21.3.1 is available.You should consider upgrading via the 'python -m pip install --upgrade pip' command 当在下面出现Success,那么恭喜你安装成功. 失败的看这里: 失败的首先可以尝试更换升级指令,例如: py…
原因是pip安装python包会加载我的用户目录,我的用户目录恰好是中文的,ascii不能编码.解决办法是: python目录 Python27\Lib\site-packages 建一个文件sitecustomize.py 内容写: import sys sys.setdefaultencoding('gb2312') python会自动运行这个文件. windows10 下的问题解决办法! -- 按照jupyter Jupyter Notebook(此前被称为 IPython noteboo…
1.使用命令出现. You are , however version is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command. PS D:\安装\Python36-\Lib> PS D:\安装\Python36-\Lib> PS D:\安装\Python36-\Lib> python -m pip install --upgrade pip Col…
参考: Problem Confirming the SSL Certificate - OSX OS X EI Captain 下解决 There was a problem confirming the ssl certificate 问题 在安装 matplotlib 时,出现以下错误: python3 -mpip install matplotlib Collecting matplotlib Could not fetch URL https://pypi.python.org/sim…
Exception: Traceback (most recent call last): File , in main status = self.run(options, args) File , in run root=options.root_path, File , in install requirement.uninstall(auto_confirm=True) File , in uninstall paths_to_remove.remove(auto_confirm) Fi…
Mac升级到yosemite后,php也自动升级,运行项目的时候发现后台验证码显示不出来.调试一下发现imagetfftext这个函数不存在,应该gd没有安装完全,因为Mac上的php实现系统自带的,只能通过重新安装php来解决[不能通过安装扩展来处理],经过对比发现使用homebrew安装会方便点... 首先重新安装freetype,jpeg,libpng,gd #先删除之前的再安装新的,没有安装过的则直接跳过即可 sudo brew rm freetype jpeg libpng gd zl…
Mac升级系统到 Yosemite 10.10,对于各位Coder来说,还是需要一些时间来折腾的! @星空之下 同学反映 PHPCMS 的验证码图片不能正常显示,反馈该验证码需要GD库支持FreeType,这里尝试解决一下,如果问题,可交流! 先确认一下GD库是否已经支持,打印 phpinfo(); 发现 GD Support enabled,但并没有 FreeType 的信息,尝试如下: 安装 FreeType 前往苹果官方开源支持:http://www.apple.com/opensourc…
原文:[Xamarin挖墙脚系列:在VMware11中安装Mac10.11 EI Captain后的vmware tools] 如何安装 darwin.iso,百度去吧. 关键是对应版本的darwin.iso 在哪有 https://softwareupdate.vmware.com/cds/vmw-desktop/fusion/ 全部的版本都在 在VM11下面的Mac虚拟机会出现共享文件夹闪退的现象,目前没找到解决办法.只能手快点,把硬件配置调低些,比如内存2G,然后快速打开它,然后固定到Fi…
*:first-child { margin-top: 0 !important; } body > *:last-child { margin-bottom: 0 !important; } a { color: #4183C4; } a.absent { color: #cc0000; } a.anchor { display: block; padding-left: 30px; margin-left: -30px; cursor: pointer; position: absolute…
环境描述: Python 2.7.5 CentOS-7.2   报错现象: (1).在虚拟环境下运行 pip install 命令安装 PyPI 第三方库,出现类似如下告警. Running setup.py egg_info for package Werkzeug     no previously-included directories found matching 'docs/_build'     no previously-included directories found ma…
使用homebrew安装php7 brew update #更新源 brew search php #查找源中的php,发现有php7.1版本,安装最新的php7.1 brew install php71 安装完之后 php -v localhost:promotion wyc$ php-fpm -v PHP 5.5.36 (fpm-fcgi) (built: May 29 2016 01:07:24) Copyright (c) 1997-2015 The PHP Group Zend Eng…
# pip install 提示代理连接失败原因及解决办法 1. 错误提示 在公司电脑上安装Python的虚拟环境时输入命令: pip install virtualenv 系统提示以下异常信息: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', timeo…
升级 Python 导致 yum 和 pip 异常: 一些storm 和 自定义项目 需要升级python版本:Linux 系统默认是2.6 版本 ,所以需要根据业务进行升级操作:Python 官方下载地址: https://www.python.org/ftp/python/ # yum install gcc gcc-c++ -y # wget https://www.python.org/ftp/python/2.7.13/Python-2.7.13.tgz # tar -xf Pytho…
pip install http://download.pytorch.org/whl/cu80/torch-0.2.0.post3-cp27-cp27mu-manylinux1_x86_64.whl pip install torchvision 今天在按照上面的命令安装pytorch的时候,首先将whl文件下载到本地,然后直接pip install该文件,再安装的时候报错,TypeError: unsupported operand type(s) for -=: 'Retry' and '…
转载于:https://blog.csdn.net/cxs123678/article/details/80659273 再安装包的时候提示 You are using pip version 9.0.3, however version 10.0.1 is available.You should consider upgrading via the 'python -m pip install --upgrade pip' command.12而我按照要求运行python -m pip in…
CentOS升级Python2.7及安装pip 1) 升级Python2.7 ? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 python -V  # 查看版本:Python 2.6.6   mkdir -p ~/Env/python; cd ~/Env/python  # 创建个目录   wget --no-check-certificate https://www…
使用pip install的时候报错 解决方法是使用如下的命令进行安装 python -m pip install sqlalchemy 升级pip的命令python2 -m pip install --upgrade pip 报错没有权限的话可以使用下面的方法 卸载的命令为pip uninstall selenium…
安装个distribute或nose或lpthw.web或virtualenv 都可能出现下面问题   root@kali:~# pip install distribute Collecting distribute Exception: Traceback (most recent call last):   File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 215, in main     statu…
matplotlib是python中强大的画图模块. 首先确保已经安装python,然后用pip来安装matplotlib模块. 进入到cmd窗口下,建议执行python -m pip install -U pip setuptools进行升级. 接着键入python -m pip install matplotlib进行自动的安装,系统会自动下载安装包. 安装完成后,可以用python -m pip list查看本机的安装的所有模块,确保matplotlib已经安装成功. 如果你能看的上面的m…
mac里面python自带easy_install,在终端里面执行sudo easy_install pip.运行完可以用pip help测试一下是否安装成功,成功安装后,直接pip install 安装其它包. ps:用sudo的时候需要输入密码,这个密码是你自己电脑的密码,输入的时候采取了“保密措施”,你看不到自己输入的字符,完整的输入进去以后,回车就可以了.…
升级pip后报错 TypeError: 'module' object is not callable 原因 存在两个版本的pip 先把原先版本的卸载了: python -m pip uninstall pip = 旧版本号 升级 You should consider upgrading via the 'python -m pip install --upgrade pip' command. 1.先卸载原先版本 python - m pip uninstall pip = 旧版本号 1.安…
替换brew.git:cd "$(brew --repo)"git remote set-url origin https://mirrors.aliyun.com/homebrew/brew.git# 替换homebrew-core.git:cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"git remote set-url origin https://mirrors.aliyun.com/homeb…
pypi 镜像使用帮助 pypi 镜像每 5 分钟同步一次. 临时使用 pip install -i https://pypi.tuna.tsinghua.edu.cn/simple some-package 注意,simple 不能少, 是 https 而不是 http 设为默认 升级 pip 到最新的版本 (>=10.0.0) 后进行配置: pip install pip -U pip config set global.index-url https://pypi.tuna.tsinghu…