国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > Python > 正文

解決Mac安裝scrapy失敗的問題

2020-02-15 21:49:13
字體:
來源:轉載
供稿:網友

今天打算弄個爬蟲,想來想去打算用python弄一個。之前了解到scrapy這個庫是個不錯的選擇,于是開始折騰??上У谝徊骄蛼炝?。

安裝scrapy庫就不成功:

Installing collected packages: six, w3lib, parsel, pyasn1, pyasn1-modules, attrs, service-identity, scrapy 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/basecommand.py", line 215, in main status = self.run(options, args) File "/Library/Python/2.7/site-packages/pip/commands/install.py", line 342, in run prefix=options.prefix_path, File "/Library/Python/2.7/site-packages/pip/req/req_set.py", line 778, in install requirement.uninstall(auto_confirm=True) File "/Library/Python/2.7/site-packages/pip/req/req_install.py", line 754, in uninstall paths_to_remove.remove(auto_confirm) File "/Library/Python/2.7/site-packages/pip/req/req_uninstall.py", line 115, in remove renames(path, new_path) File "/Library/Python/2.7/site-packages/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: '/var/folders/r9/35q9g3d56_d9g0v59w9x2l9w0000gn/T/pip-oWMyqW-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/six-1.4.1-py2.7.egg-info'

果斷google+stackoverflow。

結論是:

http://stackoverflow.com/questions/31900008/oserror-errno-1-operation-not-permitted-when-installing-scrapy-in-osx-10-11

brew install python

原因是舊的python版本在新的mac系統上有些問題。升級一下就好了。

以上這篇解決Mac安裝scrapy失敗的問題就是小編分享給大家的全部內容了,希望能給大家一個參考,也希望大家多多支持武林站長站。

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 集安市| 固始县| 岳西县| 建水县| 阜城县| 婺源县| 伊吾县| 重庆市| 无棣县| 辽中县| 宜宾县| 贵德县| 白城市| 正阳县| 古丈县| 巴林右旗| 恩施市| 富顺县| 鹤岗市| 集贤县| 莎车县| 连城县| 右玉县| 潮州市| 东乌| 微山县| 六枝特区| 会理县| 五家渠市| 通化县| 定南县| 印江| 甘孜| 万山特区| 西安市| 郧西县| 普洱| 佳木斯市| 黑山县| 泉州市| 万安县|