![]() |
|
[Python] pip won't install dependencies in virtualenv - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [Python] pip won't install dependencies in virtualenv (/showthread.php?tid=6200514) |
pip won't install dependencies in virtualenv - ThinWhiteDuke - Apr 7, 2022 I've created a python script to host a Discord Bot in a virtualenv I type in pip list to see which tools I have and see: pip 22.0.4 setuptools 58.1.0 I need both the requests and discord.py modules so I try to install using sudo pip install requests and in the Terminal I get the message: Requirement already satisfied: requests in /usr/lib/python3/dist-packages (2.22.0) pip list again shows only: pip 22.0.4 setuptools 58.1.0 any pip installations seem to be installing in the main OS not the virtualenv I tried using google and seen a couple of similar article of this subject but nothing that solves my issue, So I'm here asking the awesome people of HF RE: pip won't install dependencies in virtualenv - Rekursio420 - Apr 7, 2022 You do activate enviroment before running pip? So you created venv like so: python3.10 -m venv venv than activate: . venv/bin/activate and install requests: pip3 install requests RE: pip won't install dependencies in virtualenv - ThinWhiteDuke - Apr 7, 2022 (Apr 7, 2022 09:14 AM)Rekursio420 Wrote: You do activate enviroment before running pip? Yes that's the way I did it 1 created a venv 2 activated the venv 3 tried pip install requests but didn't install anything |