mac安装html5lib报错

pip安装html5lib包的时候报一下错误:

?  /test sudo  pip install html5lib

The directory '/Users/lele/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

The directory '/Users/lele/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

Collecting html5lib

Downloading html5lib-1.0.1-py2.py3-none-any.whl (117kB)

100% |████████████████████████████████| 122kB 61kB/s

Requirement already satisfied: webencodings in /Library/Python/2.7/site-packages (from html5lib)

Collecting six>=1.9 (from html5lib)

Downloading six-1.11.0-py2.py3-none-any.whl

Installing collected packages: six, html5lib

Found existing installation: six 1.4.1

DEPRECATION: Uninstalling a distutils installed project (six) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project.

Uninstalling six-1.4.1:

Exception:

Traceback (most recent call last):

File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/basecommand.py", line 215, in main

status = self.run(options, args)

File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/commands/install.py", line 342, in run

prefix=options.prefix_path,

File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_set.py", line 778, in install

requirement.uninstall(auto_confirm=True)

File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_install.py", line 754, in uninstall

paths_to_remove.remove(auto_confirm)

File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_uninstall.py", line 115, in remove

renames(path, new_path)

File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/utils/__init__.py", line 267, in renames

shutil.move(old, new)

File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 302, in move

copy2(src, real_dst)

File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 131, in copy2

copystat(src, dst)

File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 103, in copystat

os.chflags(dst, st.st_flags)

OSError: [Errno 1] Operation not permitted: '/tmp/pip-L0B9DH-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/six-1.4.1-py2.7.egg-info'

这是因为OS X El Capitan发行时已经安装了六个1.4.1,当它试图卸载它时(因为awscli依赖于botocore,botocore依赖于python-dateutil,python-dateutil依赖于六> = 1.5)因为系统完整性保护甚至不允许root修改这些目录。

理想情况下,点应该跳过卸载这些项目,因为他们没有安装到他们安装到一个特殊的苹果目录的网站包。但是,即使点击跳过卸载这些项目,并安装六个站点包,我们会遇到另一个错误,苹果把他们预先安装的东西早于sys.path站点包。

解决办法:

?  /test sudo pip install --ignore-installed six

The directory '/Users/lele/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

The directory '/Users/lele/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

Collecting six

Downloading six-1.11.0-py2.py3-none-any.whl

Installing collected packages: six

Successfully installed six-1.11.0

?  /test sudo  pip install html5lib

The directory '/Users/lele/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

The directory '/Users/lele/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

Collecting html5lib

Downloading html5lib-1.0.1-py2.py3-none-any.whl (117kB)

100% |████████████████████████████████| 122kB 137kB/s

Requirement already satisfied: webencodings in /Library/Python/2.7/site-packages (from html5lib)

Requirement already satisfied: six>=1.9 in /Library/Python/2.7/site-packages (from html5lib)

Installing collected packages: html5lib

Successfully installed html5lib-1.0.1

原文地址:http://blog.51cto.com/legehappy/2065527

时间: 2024-08-29 05:58:48

mac安装html5lib报错的相关文章

mac 安装mysql 报错“ERROR 2002 (HY000): Can not connect to local MySQL server through socket '/tmp/mysql.sock' (2)” 解决办法

首先安装 homebrew 再 brew install mysql 之后连接 mysql 无论是登录还是修改初始密码都会报如下的错误 ERROR 2002 (HY000): Can not connect to local MySQL server through socket '/tmp/mysql.sock' (2) 运行如下解决:参考 http://www.thinksaas.cn/group/topic/347978/ unset TMPDIR mysql_install_db --v

【Django】Mac 安装pip3-install-mysqlclient 报错

1.首先在pip3-install-mysqlclient时报错 mysql_config not found 2.逛了一些博客 让安装mysql或者mysql-connector-c 我安装了后者还是报错,现在报了这个错误 File "<string>", line 1, in <module> File "/private/var/folders/2f/r1pwfcp521q7z9kd240tr3700000gn/T/pip-build-u8yhU

mac安装mysql报错ERROR 1045 (28000): Access denied for.

安装完后,mysql -h localhost -u root -p 时候报错,ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)第一步:删除 /usr/local/mysql/data/ 下的 ib_logfile0和ib_logfile1文件.第二步:在系统偏好设置中停止Mysql服务第三步:cd /usr/local/mysql/bin/执行 ./mysqld_safe --

MAC 安装psycopg2报错ld: library not found for -lssl

pip3 install psycopg2 报错:ld: library not found for -lssl 解决参考:https://github.com/PyMySQL/mysqlclient-python/issues/169 安装前定义这两个环境变量就好了 export LDFLAGS="-L/usr/local/opt/openssl/lib" export CPPFLAGS="-I/usr/local/opt/openssl/include" 原文地

解决Mac安装tesserocr报错问题 Failed building wheel for

localhost:~ jerry$ Processing /var/www/git/python/tesserocr -bash: Processing: command not found localhost:~ jerry$ pip3 install tesserocr Collecting tesserocr Using cached https://files.pythonhosted.org/packages/f8/6d/4e81e041f33a4419e59edcb1dbdf3c5

mac安装chromedriver报错

运行提示:Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromed 此问题出现的原因是chromedriver路径不对 1.到chromedriver的根目录下 2.移动chromedriver到/usr/local/bin目录 命令如下 $unzip chromedriver_map32.zip $mv chromedriv

Mac brew 安装mysql 报错 ERROR 2002 (HY000): Can&#39;t connect to local MySQL server through socket

安装mysql 最新版 56 brew install mysql 启动报错 ben:~ soul$ which mysql /usr/local/bin/mysql ben:~ soul$ mysql ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) 解决办法 运行 ben:~ soul$ mysql.server start Starting MySQL .

mac上安装pil报错: ERROR: Could not find a version that satisfies the requirement pil (from versions: none):

mac上安装pil报错: ERROR: Could not find a version that satisfies the requirement pil (from versions: none): 原文地址:https://www.cnblogs.com/Zhao159461/p/12629635.html

opencv mac macOS Sierra 报错 &#39;QTKit/QTKit.h&#39; file not found 解决记录

在安装opencv时如果升级了macOS Sierra可能会遇到如下错误: XXX/cap_qtkit.mm:46:9: fatal error: 'QTKit/QTKit.h' file not found #import ^ 1 error generated. make[2]: *** [modulesideoio/CMakeFiles/opencv_videoio.dir/src/cap_qtkit.mm.o] Error 1 make[1]: *** [modulesideoio/CM