# How do I install extra Python packages on Scrapy Cloud?

**URL:** <https://forum.zyte.com/t/how-do-i-install-extra-python-packages-on-scrapy-cloud/29>\
**Category:** Scrapy Cloud\
**Tags:** python, deployment, scrapy-cloud\
**Created:** [October 2, 2026, 8:21am UTC](https://forum.zyte.com/t/how-do-i-install-extra-python-packages-on-scrapy-cloud/29 "2026-10-02T08:21:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JohnWR](https://forum.zyte.com/letter_avatar_proxy/v4/letter/j/58f4c7/32.png) [@JohnWR](https://forum.zyte.com/u/JohnWR)\
**Post date:** [October 2, 2026, 8:21am UTC](https://forum.zyte.com/t/how-do-i-install-extra-python-packages-on-scrapy-cloud/29/1 "2026-10-02T08:21:17Z")

</div>

My spider imports a package that is not in the Scrapy Cloud stack, and the job fails with an import error. How do I add it?

_Asked and answered by the Zyte team, as a reference for the community._

---

<div class="post-metadata">

**Author:** ![JohnWR](https://forum.zyte.com/letter_avatar_proxy/v4/letter/j/58f4c7/32.png) [@JohnWR](https://forum.zyte.com/u/JohnWR)\
**Post date:** [October 2, 2026, 8:21am UTC](https://forum.zyte.com/t/how-do-i-install-extra-python-packages-on-scrapy-cloud/29/2 "2026-10-02T08:21:20Z")

</div>

List your dependencies in a `requirements.txt` in the project, and tell the deploy about it in `scrapinghub.yml`:

```yaml
requirements:
  file: requirements.txt

```

Then deploy again. The packages are installed into the project’s environment as part of the deploy.

A few related points.

- If a spider setting you need is not in the settings list in the dashboard, pick the first entry in the drop-down, Custom Name, then type the name and value. The Raw Settings tab lets you edit all settings as plain text.
- The stack decides which Python version you run. See the stacks article in the Scrapy Cloud help center.
- If you need more control over the environment, for example to run a browser next to your spider, a paying account can deploy a custom Docker image.

Docs: [Deploying code to Scrapy Cloud projects - Zyte documentation](https://docs.zyte.com/scrapy-cloud/usage/deployment.html) and [Frequently Asked Questions about Scrapy Cloud - Zyte documentation](https://docs.zyte.com/scrapy-cloud/usage/faq.html)
