Skip to content

bash: pip: command not found #18835

@janhlavin

Description

@janhlavin

Deployment Type

NetBox Cloud

NetBox Version

v4.2.5

Python Version

3.12

Steps to Reproduce

I tried install plugin, but "pip not found":

root@netbox-0:/opt/netbox/netbox# source /opt/netbox/venv/bin/activate
(venv) root@netbox-0:/opt/netbox/netbox# pip install netbox-bgp
bash: pip: command not found

in "/opt/netbox/venv/bin" don't see pip binary:

(venv) root@netbox-0:/opt/netbox/venv/bin# ls -l
total 168
-rw-r--r-- 1 root root 3692 Feb 15 05:49 activate
-rw-r--r-- 1 root root 2248 Feb 15 05:49 activate.bat
-rw-r--r-- 1 root root 2599 Feb 15 05:49 activate.csh
-rw-r--r-- 1 root root 4163 Feb 15 05:49 activate.fish
-rw-r--r-- 1 root root 3848 Feb 15 05:49 activate.nu
-rw-r--r-- 1 root root 2762 Feb 15 05:49 activate.ps1
-rw-r--r-- 1 root root 2383 Feb 15 05:49 activate_this.py
-rw-r--r-- 1 root root 1728 Feb 15 05:49 deactivate.bat
-rwxr-xr-x 1 root root  358 Mar  7 05:50 django-admin
-rwxr-xr-x 1 root root 1273 Mar  7 05:50 dul-receive-pack
-rwxr-xr-x 1 root root 1269 Mar  7 05:50 dul-upload-pack
-rwxr-xr-x 1 root root  305 Mar  7 05:50 dulwich
-rwxr-xr-x 1 root root  304 Mar  7 05:50 ghp-import
-rwxr-xr-x 1 root root 1707 Mar  7 05:50 jp.py
-rwxr-xr-x 1 root root  308 Mar  7 05:50 jsonschema
-rwxr-xr-x 1 root root  315 Mar  7 05:50 markdown-it
-rwxr-xr-x 1 root root  309 Mar  7 05:50 markdown_py
-rwxr-xr-x 1 root root  307 Mar  7 05:50 mkdocs
-rwxr-xr-x 1 root root  316 Mar  7 05:50 mkdocs-get-deps
-rwxr-xr-x 1 root root  305 Mar  7 05:50 netaddr
-rwxr-xr-x 1 root root  321 Mar  7 05:50 normalizer
-rwxr-xr-x 1 root root  317 Mar  7 05:50 pybabel
-rw-r--r-- 1 root root 1215 Feb 15 05:49 pydoc.bat
-rwxr-xr-x 1 root root  310 Mar  7 05:50 pygmentize
-rwxr-xr-x 1 root root  307 Mar  7 05:50 pyrsa-decrypt
-rwxr-xr-x 1 root root  307 Mar  7 05:50 pyrsa-encrypt
-rwxr-xr-x 1 root root  305 Mar  7 05:50 pyrsa-keygen
-rwxr-xr-x 1 root root  328 Mar  7 05:50 pyrsa-priv2pub
-rwxr-xr-x 1 root root  301 Mar  7 05:50 pyrsa-sign
-rwxr-xr-x 1 root root  305 Mar  7 05:50 pyrsa-verify
lrwxrwxrwx 1 root root   16 Feb 15 05:49 python -> /usr/bin/python3
lrwxrwxrwx 1 root root    6 Feb 15 05:49 python3 -> python
lrwxrwxrwx 1 root root    6 Feb 15 05:49 python3.12 -> python
-rwxr-xr-x 1 root root  306 Mar  7 05:50 pytkdocs
-rwxr-xr-x 1 root root  300 Mar  7 05:50 rq
-rwxr-xr-x 1 root root  300 Mar  7 05:50 rqinfo
-rwxr-xr-x 1 root root  304 Mar  7 05:50 rqworker
-rwxr-xr-x 1 root root 9517 Mar  7 05:50 shopify_api.py
-rwxr-xr-x 1 root root  311 Mar  7 05:50 sqlformat
-rwxr-xr-x 1 root root  303 Mar  7 05:50 stone
-rwxr-xr-x 1 root root  306 Mar  7 05:50 strawberry
-rwxr-xr-x 1 root root  312 Mar  7 05:50 watchmedo

Expected Behavior

install plugin

Observed Behavior

see: "bash: pip: command not found"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions