刚下载的pycharm下载第三方库失败

img


pip22.3.1 python解释器3.11
按照pycharm去终端下

img


其他几个第三方库也一样
以下为pycharm输出的代码

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

不知道你这个问题是否已经解决, 如果还没有解决的话:

如果你已经解决了该问题, 非常希望你能够分享一下解决方案, 写成博客, 将相关链接放在评论区, 以帮助更多的人 ^-^