---
title: "Discussion on \"Prevent global `pip install`\" | Hashnode"
description: "Discussion on \"Prevent global `pip install`\". PIP_REQUIRE_VIRTUALENV=truein your .zshrc (or env variables)\nprevents you from pip installing globally\nso that you only run pip install in a venv\nOnly use pipx for global installs"
url: "https://hashnode.com/posts/prevent-global-pip-install/65e9efe4483e94834b937c94"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Prevent global \`pip install\`](https://fullchee.hashnode.dev/prevent-global-pip-install?utm_source=hashnode&utm_medium=feed)

PIP\_REQUIRE\_VIRTUALENV=truein your .zshrc (or env variables) prevents you from pip installing globally so that you only run pip install in a venv Only use pipx for global installs

Mar 7, 2024 · 1 min read · fullchee.hashnode.dev  
Read the article

-   [#pip](https://hashnode.com/tag/pip)
-   [#python](https://hashnode.com/tag/python)
-   [#pipx](https://hashnode.com/tag/pipx)

## Written by

[Fullchee Zhang](https://hashnode.com/@Fullchee)

@Fullchee · Toronto, Canada

  
[View profile](https://hashnode.com/@Fullchee)

Full Stack Dev at Forma AI

React, Django and SQL developer at Forma.ai

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
