解决pycharm安装scrapyDLLloadfailed:不到指定的程序的问题
Note: 本解决⽅案在window10 + anaconda3 +pycharm2020.1.1 + scrapy安装亲测可⽤
问题:安装Scrapy后,执⾏scrapy出现:
from cryptography.hazmat.bindings._openssl import ffi ImportError: DLL load failed:不到指定的程序
个⼈认为是Anaconda和Pycharm的部分Python库不能互相调⽤
即对于某些库,Anaconda存在相同的库,在pycharm安装时不会再安装某些Anaconda中已经存在的Python库,但是pycharm可⽤检测到系统已存在这些库,但⼜不能调⽤Anaconda的⼀些Python库
(不⼀定是哪种⽅法解决了问题)
⽅法4解决了问题
1. 尝试过的⽅法:
⽅法1:把anacond的三个路径都写到环境变量Path,系统本⾝就是这样,但依然出现相同的问题
⽅法2. 将anaconda promote 中的echo %PATH%的输⼊结果加到pycharm中的python console中,但依旧没有解决问题
⽅法3:依旧没有解决
(1)pip uninstall scrapy
(2) conda uninstall scrapy
(3) pip install --force --upgrade scrapy
(4)测试:scrapy
⽅法4:
(1)在pycharm的terminal中卸载scrapy
pip uninstall scrapy
pycharm python安装教程(2)在anaconda prompt中卸载scrapy
conda uninstall scrapy
(3)在pycharm的terminal中安装scrapy
c语言do switch case用法pip install scrapy
mysql和sqlyog关系(4)如果此时还有些库出现问题,导致不到程序,则在win10的命令⾏窗⼝卸载相应的库,再在pycharm的terminal中安装相应的库
可能存在idna版本过⾼的问题,
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the
following dependency conflicts.
requests 2.25.1 requires idna<3,>=2.5, but you have idna 3.2 which is incompatible.
构造方法重载和重写的区别但是在pycharm的终端中卸载时却提⽰⽂件不存在
则需要在win10的命令⾏窗⼝卸载idna
pip uninstall idna
然后在pycharm的terminal中安装idna
pip install idna==2.5
安装过程中,可能出现如下错误
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
twisted 21.2.0 requires Automat>=0.8.0, but you have automat 0.7.0 which is incompatible.
另外⼀些其他库的操作⽅法相同
例如,存在cryptography却不可调⽤,是因为cryptography原始安装在anaconda的环境中的
因此,在win10的命令⾏窗⼝卸载cryptography
pip uninstall cryptography
然后,在pycharm的terminal中安装cryptography
infuse加载内容发生错误pip install cryptography
番石榴对女性的坏处执⾏scrapy提⽰service_identity模块不存在
在pycharm中安装时却提⽰已经存在
则,在win10的命令⾏窗⼝卸载service_identity pip uninstall service_identity
然后,在pycharm的terminal中安装service_identity pip install service_identity
再次执⾏scrapy,提⽰如下,则scrapy安装成功
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论