在Mac上安装scrapy-找不到pyasn1发行版 [英] Installing scrapy on mac - pyasn1 distribution not found

查看:182
本文介绍了在Mac上安装scrapy-找不到pyasn1发行版的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在我的Mac(OS El Capital,10.11.4)上安装了scrapy,在scrapy和python版本(2.7.11)之间似乎没有任何兼容性问题,但是当我尝试使用scrapy startproject tutorial我收到以下错误消息:

I have installed scrapy on my mac (OS El Capital, 10.11.4), there does not seem to be any compatibilty problem between scrapy and my python version (2.7.11) but when I try to start a project with scrapy startproject tutorial I get following error message:

pkg_resources.DistributionNotFound: The 'pyasn1' distribution was not 
found and is required by service-identity

我尝试过更新pyasn1和服务标识包,但这并没有改变任何东西.对于此特定问题,我没有找到任何帮助.

I have tried updating both the pyasn1 and the service identity package, but that did not change anything. I have not found any help regarding this specific problem.

有人遇到过类似的问题吗?是否有解决方案(甚至是野蛮的"解决方案,例如卸载所有内容以从头开始)?

Has anyone ever experienced a similar problem? Is there a solution (even a "brutal" one, like uninstalling everything to start from scratch)?

推荐答案

无需从头开始安装所有内容.我建议您在单独的python环境中构建scrapy.就我而言,在我的环境中一个简单的pip install cryptography解决了这个问题.

There is no need to install everything from scratch. I suggest you to build scrapy in a separate python environment. In my case, a simple pip install cryptography in my environment solved this issue.

这篇关于在Mac上安装scrapy-找不到pyasn1发行版的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆