初探Scrapy 时,也不知道按照哪里的文档装的,由于安装低版本的pyasn1 后,使用pip uninstall 都 卸不了

步骤如下:

异常:

pyasn1-modules 0.2.1 has requirement pyasn1<0.5.0,>=0.4.1, but you'll have pyasn1 0.1.7 which is incompatible.

网上方案:

https://blog.csdn.net/ksx_120999/article/details/80012650

pip install pyasn1-modules

报错

Cannot uninstall 'pyasn1'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

貌似重新安装是先uninstall 然后,卸不了

于是从 pyasn1 官网下源代码再安装

https://pypi.org/project/pyasn1/#files

官网地址

下载 

 pyasn1 安装异常

下载后,解压,进入根目录  

python setup.py build
python setup.py install

 

OK,pyasn1 己安装指定版本。

 

 


 
                    
            
                

相关文章:

  • 2022-12-23
  • 2021-05-25
  • 2021-10-20
  • 2021-10-19
  • 2021-05-19
  • 2021-05-20
  • 2021-07-20
猜你喜欢
  • 2021-10-16
  • 2021-07-23
  • 2021-05-07
  • 2022-02-22
  • 2021-11-22
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案