请问在weiboSpider目录运行 python3

您所在的位置:网站首页 github点击code没反应 请问在weiboSpider目录运行 python3

请问在weiboSpider目录运行 python3

2023-03-30 06:35| 来源: 网络整理| 查看: 265

为了更好的解决问题,请认真回答下面的问题。等到问题解决,请及时关闭本issue。

问:请您指明哪个版本运行出错(github版/PyPi版/全部)?

答:源码安装的

问:您使用的是否是最新的程序(是/否)?

答:我前期在Git Bash中运行安装的,相关log如下

Xing Poyaun@LAPTOP-0HTFA64B MINGW64 /d/Users/Xing Poyaun/GitDatabase (master) $ git clone https://github.com/dataabc/weiboSpider.git Cloning into 'weiboSpider'... remote: Enumerating objects: 1680, done. remote: Counting objects: 100% (255/255), done. remote: Compressing objects: 100% (137/137), done. remote: Total 1680 (delta 144), reused 176 (delta 118), pack-reused 1425 Receiving objects: 100% (1680/1680), 574.85 KiB | 523.00 KiB/s, done. Resolving deltas: 100% (940/940), done.

Xing Poyaun@LAPTOP-0HTFA64B MINGW64 /d/Users/Xing Poyaun/GitDatabase (master) $ cd weiboSpider

Xing Poyaun@LAPTOP-0HTFA64B MINGW64 /d/Users/Xing Poyaun/GitDatabase/weiboSpider (master) $ pip install -r requirements.txt Requirement already satisfied: lxml==4.9.1 in d:\softwares\programming_softwares\anaconda3\lib\site-packages (from -r requirements.txt (line 1)) (4.9.1) Collecting requests==2.23.0 Downloading requests-2.23.0-py2.py3-none-any.whl (58 kB) -------------------------------------- 58.4/58.4 kB 140.0 kB/s eta 0:00:00 Collecting tqdm==4.46.1 Downloading tqdm-4.46.1-py2.py3-none-any.whl (63 kB) -------------------------------------- 63.7/63.7 kB 568.4 kB/s eta 0:00:00 Collecting absl-py==0.12.0 Downloading absl_py-0.12.0-py3-none-any.whl (129 kB) ------------------------------------ 129.4/129.4 kB 763.7 kB/s eta 0:00:00 Collecting idna=2.5 Downloading idna-2.10-py2.py3-none-any.whl (58 kB) ---------------------------------------- 58.8/58.8 kB 1.0 MB/s eta 0:00:00 Collecting chardet=3.0.2 Downloading chardet-3.0.4-py2.py3-none-any.whl (133 kB) -------------------------------------- 133.4/133.4 kB 1.3 MB/s eta 0:00:00 Requirement already satisfied: certifi>=2017.4.17 in d:\softwares\programming_softwares\anaconda3\lib\site-packages (from requests==2.23.0->-r requirements.txt (line 2)) (2022.9.14) Collecting urllib3!=1.25.0,!=1.25.1,=1.21.1 Downloading urllib3-1.25.11-py2.py3-none-any.whl (127 kB) -------------------------------------- 128.0/128.0 kB 1.5 MB/s eta 0:00:00 Requirement already satisfied: six in d:\softwares\programming_softwares\anaconda3\lib\site-packages (from absl-py==0.12.0->-r requirements.txt (line 4)) (1.16.0) Installing collected packages: chardet, urllib3, tqdm, idna, absl-py, requests Attempting uninstall: chardet Found existing installation: chardet 4.0.0 Uninstalling chardet-4.0.0: Successfully uninstalled chardet-4.0.0 Attempting uninstall: urllib3 Found existing installation: urllib3 1.26.11 Uninstalling urllib3-1.26.11: Successfully uninstalled urllib3-1.26.11 Attempting uninstall: tqdm Found existing installation: tqdm 4.64.1 Uninstalling tqdm-4.64.1: Successfully uninstalled tqdm-4.64.1 Attempting uninstall: idna Found existing installation: idna 3.3 Uninstalling idna-3.3: Successfully uninstalled idna-3.3 Attempting uninstall: requests Found existing installation: requests 2.28.1 Uninstalling requests-2.28.1: Successfully uninstalled requests-2.28.1 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. spyder 5.2.2 requires pyqt5=4.56.0, but you have tqdm 4.46.1 which is incompatible. anaconda-client 1.11.0 requires urllib3>=1.26.4, but you have urllib3 1.25.11 which is incompatible. Successfully installed absl-py-0.12.0 chardet-3.0.4 idna-2.10 requests-2.23.0 tqdm-4.46.1 urllib3-1.25.11

Xing Poyaun@LAPTOP-0HTFA64B MINGW64 /d/Users/Xing Poyaun/GitDatabase/weiboSpider (master) 对照spyder 5.22 需要的库,我在pycharm中对应下载了最新版本的,因为第一个库要求版本不能安装上。所以索性全部所需库安装了最新版的。

这是我运行了python3 -m weibo_spider后没有反应的文件夹截图 image

问:爬取任意用户都会运行出错吗(是/否)?

答:

问:若只有爬特定微博时才出错,能否提供出错微博的weibo_id或url(非必填)?

答:

问:若您已提供出错微博的weibo_id或url,可忽略此内容,否则能否提供出错账号的user_id及您配置的since_date,方便我们定位出错微博(非必填)?

答:

问:如果方便,请您描述出错详情,最好附上错误提示。

答:



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3