0

I use a fish shell, activate a virtual environment, Python works from the environment, but pip is used globally. How to fix it?

$ which python
/develop/venv/bin/python 
$ which pip
/usr/bin/pip 
$ python -m pip --version
pip 21.1 from /develop/venv/lib/python3.9/site-packages/pip

~ / .pydistutils.cfg The file does not exist.

Sonic Park
  • 19
  • 4
  • Does this answer your question? [pip missing from Python venv](https://stackoverflow.com/questions/43426275/pip-missing-from-python-venv) – wjandrea Apr 27 '21 at 01:33
  • 1
    Unfortunately no( ~ / .pydistutils.cfg The file does not exist. – Sonic Park Apr 27 '21 at 01:38
  • What's with the spaces? It should be `~/.pydistutils.cfg` – wjandrea Apr 27 '21 at 01:39
  • ``` . ├── .bash_history ├── .bash_logout ├── .bash_profile ├── .bashrc ├── .cache ├── .config ├── .firedragon ├── .gtkrc-2.0 ├── .icons ├── .java ├── .kde4 ├── .lesshst ├── .local ├── .mozilla ├── pkglist.txt ├── .pki ├── .profile ├── .ssh ├── .wget-hsts ├── .whatsdesk ├── .Xauthority ├── .xinitrc ``` – Sonic Park Apr 27 '21 at 01:59

0 Answers0