selfteaching / selfteaching/selfteaching-python-camp

Day11 ImportError: DLL load failed?这个怎么办?

Open
#2,282 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
151
Forks
875
PR merge metrics
No merged PRs in 30d

Description

在Anaconda prompt下,完成安装pip install yagmail ;pip install pyquery;pip install requests. 并更新到最新版本,也重启机器,再运行requests调用以及pyquery提取时候,就出现了:
File "c:/Users/win10/Documents/GitHub/selfteaching-python-camp/19100401/congboqiu/d11/main.py", line 13, in
from pyquery import PyQuery
File "C:\ProgramData\Anaconda3\lib\site-packages\pyquery_init_.py", line 7, in
from .pyquery import PyQuery # NOQA
File "C:\ProgramData\Anaconda3\lib\site-packages\pyquery\pyquery.py", line 10, in
from lxml import etree
ImportError: DLL load failed: 找不到指定的模块 @realcaiying @shengzhulst

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with d11/main.py at line 13 and reproduce the import in Anaconda Prompt, focusing on the pyquery-to-lxml import shown in the traceback. Check the installed environment and dependency loading; done means the script can import PyQuery and run the requests and extraction steps without the DLL error.

Written by the indexing model from the issue text.

Assessment

Tech stack
anaconda, python
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.