Collecting pyspider
Using cached pyspider-0.3.10.tar.gz (110 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting Flask>=0.10
Using cached Flask-2.3.2-py3-none-any.whl (96 kB)
Collecting Jinja2>=2.7
Using cached Jinja2-3.1.2-py3-none-any.whl (133 kB)
Collecting chardet>=2.2
Using cached chardet-5.1.0-py3-none-any.whl (199 kB)
Collecting cssselect>=0.9
Using cached cssselect-1.2.0-py2.py3-none-any.whl (18 kB)
Collecting lxml
Using cached lxml-4.9.3-cp311-cp311-win_amd64.whl (3.8 MB)
Collecting pycurl
Using cached pycurl-7.45.2.tar.gz (234 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'error'
error: subprocess-exited-with-error
python setup.py egg_info did not run successfully.
exit code: 10
[1 lines of output]
Please specify --curl-dir=/path/to/built/libcurl
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
Encountered error while generating package metadata.
See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
[notice] A new release of pip available: 22.3.1 -> 23.2.1
[notice] To update, run: python.exe -m pip install --upgrade pip
```
直接去官网下载源码就行 https://gitcode.net/mirrors/binux/pyspider?utm_source=csdn_github_accelerator
试试更新一下pip
不知道你这个问题是否已经解决, 如果还没有解决的话:有一些朋友是直接在pycharm的环境下安装库的,这样也有一定的好处就是不会导致电脑的环境比较混乱。那如何修改pycharm的下载源呢?
这样就可以将pycharm的下载源更换为国内下载源。