DEV Community

shuyueW1991
shuyueW1991

Posted on

5 3

install scrapy via venv

I read the installation of scrapy. For the ubuntu platform I am using, it says that after:

sudo apt update
Enter fullscreen mode Exit fullscreen mode

The preparation is thus done. However, the following command line:

pip install scrapy
Enter fullscreen mode Exit fullscreen mode

does not work for I see that :

ERROR: Could not install packages due to an EnvironmentError: Missing dependencies for SOCKS support.

I checked that it is not the problem of sources of ubuntu, neither is that of missing prep packages.

Then, I realize that, since I am coding inside a venv, the complete error msg may not have been exposed, which misleads my thought.

For example, the problem aroused by permission issue is not shown directly, which I later fixed by typing:

sudo pip install scrapy
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay