Skip to content
Advertisement

python packages not being installed on the virtual environment using ubuntu

I have a requirements.txt file which holds all information of my python packages I need for my Flask application. Here is what I did:

  1. python3 -m venv venv
  2. source venv/bin/activate
  3. sudo pip install -r requirements.txt

When I tried to check if the packages were installed on the virtual environment using pip list, I do not see the packages. Can someone tell what went wrong?

JavaScript

Advertisement

Answer

If you want to use python3+ to install the packages try to use pip3 install package_name

And to solve the errno 13 try to add –user at the end

JavaScript

let me know if it works

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement