我正在使用 python 2.7 和 scrapy 0.20
我想尝试 scrapy 0.22,请问该怎么做?
我试过了
pip scrapy 更新
但我收到错误消息
我关注了这个问题stackoverflow.com/questions/21258961/how-do-i-update-scrapy-from-the-terminal
我使用了pip install --upgrade scrapy
但是当我在 cmd 上运行 scrapy verion
时,我得到了 0.20
我使用的是 Windows 7
你能帮忙吗
编辑
用户建议更新 pip,我在更新 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:
pip install --upgrade pip
然后升级scrapy:
pip install --upgrade scrapy
或者...
您可能需要升级 pip:
pip install --upgrade pip
然后删除scrapy:
pip uninstall scrapy
然后重新安装scrapy:
pip install scrapy
我是一名优秀的程序员,十分优秀!