国产探花免费观看_亚洲丰满少妇自慰呻吟_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失敗的問題就是小編分享給大家的全部內容了,希望能給大家一個參考,也希望大家多多支持武林站長站。

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 平陆县| 永靖县| 繁峙县| 金塔县| 扬中市| 哈密市| 金川县| 鹤峰县| 揭阳市| 双牌县| 利津县| 章丘市| 巫溪县| 昭通市| 江山市| 游戏| 海安县| 大理市| 呼图壁县| 梁山县| 乌苏市| 吐鲁番市| 铁岭市| 登封市| 上虞市| 乐昌市| 成武县| 保亭| 高陵县| 西吉县| 秦皇岛市| 和林格尔县| 上栗县| 镇沅| 中山市| 石家庄市| 滁州市| 长治市| 司法| 华池县| 宜昌市|