gpt4 book ai didi

python 如何将scrapy更新到0.22

转载 作者:太空宇宙 更新时间:2023-11-03 18:21:19 24 4
gpt4 key购买 nike

我正在使用 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

关于python 如何将scrapy更新到0.22,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24089073/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com