python如何将scrapy更新到0.22 [英] python how to update scrapy to 0.22

查看:69
本文介绍了python如何将scrapy更新到0.22的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用带有scrapy 0.20的python 2.7

I am working with python 2.7 with scrapy 0.20

我想尝试scrapy 0.22,请问怎么做?

I would like to try scrapy 0.22, how to do that please?

我试过了

pip scrapy 更新

但我收到错误信息

我关注了这个问题stackoverflow.com/questions/21258961/how-do-i-update-scrapy-from-the-terminal

I followed this question stackoverflow.com/questions/21258961/how-do-i-update-scrapy-from-the-terminal

我使用了 pip install --upgrade scrapy

但是当我在 cmd 上运行 scrapy verion 时,我得到了 0.20

but when I run scrapy verion on cmd, I got 0.20

我使用的是 Windows 7

I am using windows 7

你能帮忙吗

用户建议更新 pip,我在更新 pip 时遇到了这个问题

a user suggest to update the pip and I got this excpetion when updating the pip

Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\pip-1.4.1-py2.7.egg\pip\basecommand.py", l
ine 134, in main
  File "C:\Python27\lib\site-packages\pip-1.4.1-py2.7.egg\pip\commands\install.p
y", line 241, in run
  File "C:\Python27\lib\site-packages\pip-1.4.1-py2.7.egg\pip\req.py", line 1306
, in install
  File "C:\Python27\lib\site-packages\pip-1.4.1-py2.7.egg\pip\req.py", line 537,
 in commit_uninstall
  File "C:\Python27\lib\site-packages\pip-1.4.1-py2.7.egg\pip\req.py", line 1663
, in commit
  File "C:\Python27\lib\site-packages\pip-1.4.1-py2.7.egg\pip\util.py", line 42,
 in rmtree
  File "C:\Python27\lib\shutil.py", line 244, in rmtree
    rmtree(fullname, ignore_errors, onerror)
  File "C:\Python27\lib\shutil.py", line 244, in rmtree
    rmtree(fullname, ignore_errors, onerror)
  File "C:\Python27\lib\shutil.py", line 249, in rmtree
    onerror(os.remove, fullname, sys.exc_info())
  File "C:\Python27\lib\site-packages\pip-1.4.1-py2.7.egg\pip\util.py", line 61,
 in rmtree_errorhandler
WindowsError: [Error 5] Access is denied: 'c:\\users\\user\\appdata\\local\\temp
\\pip-xw1mij-uninstall\\python27\\scripts\\pip.exe'

Storing complete log in C:\Users\User\pip\pip.log

推荐答案

您可能需要升级pip:

You may need to upgraded pip:

pip install --upgrade pip 

然后升级scrapy:

Then upgrade scrapy:

pip install --upgrade scrapy

或...

您可能需要升级 pip:

You may need to upgraded pip:

pip install --upgrade pip

然后删除scrapy:

Then remove scrapy:

pip uninstall scrapy

然后重新安装scrapy:

Then reinstall scrapy:

pip install scrapy

这篇关于python如何将scrapy更新到0.22的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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